Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Public Member Functions | Data Fields | Protected Member Functions | Protected Attributes
Switcher Class Reference
Inheritance diagram for Switcher:
Template Template AbstractBlock DataObject BlockInterface Websites Select

Public Member Functions

 __construct (\Magento\Backend\Block\Template\Context $context, \Magento\Store\Model\WebsiteFactory $websiteFactory, \Magento\Store\Model\GroupFactory $storeGroupFactory, \Magento\Store\Model\StoreFactory $storeFactory, array $data=[])
 
 getWebsiteCollection ()
 
 getWebsites ()
 
 isWebsiteSwitchEnabled ()
 
 setWebsiteVarName ($varName)
 
 getWebsiteVarName ()
 
 isWebsiteSelected (\Magento\Store\Model\Website $website)
 
 getWebsiteId ()
 
 getGroupCollection ($website)
 
 getStoreGroups ($website)
 
 isStoreGroupSwitchEnabled ()
 
 setStoreGroupVarName ($varName)
 
 getStoreGroupVarName ()
 
 isStoreGroupSelected (\Magento\Store\Model\Group $group)
 
 getStoreGroupId ()
 
 getStoreCollection ($group)
 
 getStores ($group)
 
 getStoreId ()
 
 isStoreSelected (\Magento\Store\Model\Store $store)
 
 isStoreSwitchEnabled ()
 
 setStoreVarName ($varName)
 
 getStoreVarName ()
 
 getSwitchUrl ()
 
 hasScopeSelected ()
 
 getCurrentSelectionName ()
 
 getCurrentWebsiteName ()
 
 getCurrentStoreGroupName ()
 
 getCurrentStoreName ()
 
 setStoreIds ($storeIds)
 
 getStoreIds ()
 
 isShow ()
 
 hasDefaultOption ($hasDefaultOption=null)
 
 getHintUrl ()
 
 getHintHtml ()
 
 isUsingIframe ()
 
- Public Member Functions inherited from Template
 __construct (\Magento\Backend\Block\Template\Context $context, array $data=[])
 
 getFormKey ()
 
 isOutputEnabled ($moduleName=null)
 
 getAuthorization ()
 
 getToolbar ()
 
- Public Member Functions inherited from Template
 __construct (Template\Context $context, array $data=[])
 
 setTemplateContext ($templateContext)
 
 getTemplate ()
 
 setTemplate ($template)
 
 getTemplateFile ($template=null)
 
 getArea ()
 
 assign ($key, $value=null)
 
 fetchView ($fileName)
 
 getBaseUrl ()
 
 getObjectData (\Magento\Framework\DataObject $object, $key)
 
 getCacheKeyInfo ()
 
- Public Member Functions inherited from AbstractBlock
 __construct (\Magento\Framework\View\Element\Context $context, array $data=[])
 
 getJsLayout ()
 
 getRequest ()
 
 getParentBlock ()
 
 setLayout (\Magento\Framework\View\LayoutInterface $layout)
 
 getLayout ()
 
 setNameInLayout ($name)
 
 getChildNames ()
 
 setAttribute ($name, $value=null)
 
 setChild ($alias, $block)
 
 addChild ($alias, $block, $data=[])
 
 unsetChild ($alias)
 
 unsetCallChild ($alias, $callback, $result, $params)
 
 unsetChildren ()
 
 getChildBlock ($alias)
 
 getChildHtml ($alias='', $useCache=true)
 
 getChildChildHtml ($alias, $childChildAlias='', $useCache=true)
 
 getBlockHtml ($name)
 
 insert ($element, $siblingName=0, $after=true, $alias='')
 
 append ($element, $alias='')
 
 getGroupChildNames ($groupName)
 
 getChildData ($alias, $key='')
 
 getUiId ($arg1=null, $arg2=null, $arg3=null, $arg4=null, $arg5=null)
 
 getJsId ($arg1=null, $arg2=null, $arg3=null, $arg4=null, $arg5=null)
 
 getUrl ($route='', $params=[])
 
 getViewFileUrl ($fileId, array $params=[])
 
 formatDate ( $date=null, $format=\IntlDateFormatter::SHORT, $showTime=false, $timezone=null)
 
 formatTime ( $time=null, $format=\IntlDateFormatter::SHORT, $showDate=false)
 
 getModuleName ()
 
 escapeHtml ($data, $allowedTags=null)
 
 escapeJs ($string)
 
 escapeHtmlAttr ($string, $escapeSingleQuote=true)
 
 escapeCss ($string)
 
 stripTags ($data, $allowableTags=null, $allowHtmlEntities=false)
 
 escapeUrl ($string)
 
 escapeXssInUrl ($data)
 
 escapeQuote ($data, $addSlashes=false)
 
 escapeJsQuote ($data, $quote='\'')
 
 getNameInLayout ()
 
 getCacheKeyInfo ()
 
 getCacheKey ()
 
 getVar ($name, $module=null)
 
 isScopePrivate ()
 
- Public Member Functions inherited from DataObject
 __construct (array $data=[])
 
 addData (array $arr)
 
 setData ($key, $value=null)
 
 unsetData ($key=null)
 
 getData ($key='', $index=null)
 
 getDataByPath ($path)
 
 getDataByKey ($key)
 
 setDataUsingMethod ($key, $args=[])
 
 getDataUsingMethod ($key, $args=null)
 
 hasData ($key='')
 
 toArray (array $keys=[])
 
 convertToArray (array $keys=[])
 
 toXml (array $keys=[], $rootName='item', $addOpenTag=false, $addCdata=true)
 
 convertToXml (array $arrAttributes=[], $rootName='item', $addOpenTag=false, $addCdata=true)
 
 toJson (array $keys=[])
 
 convertToJson (array $keys=[])
 
 toString ($format='')
 
 __call ($method, $args)
 
 isEmpty ()
 
 serialize ($keys=[], $valueSeparator='=', $fieldSeparator=' ', $quote='"')
 
 debug ($data=null, &$objects=[])
 
 offsetSet ($offset, $value)
 
 offsetExists ($offset)
 
 offsetUnset ($offset)
 
 offsetGet ($offset)
 
- Public Member Functions inherited from BlockInterface
 toHtml ()
 

Data Fields

const HINT_URL = 'http://docs.magento.com/m2/ce/user_guide/configuration/scope.html'
 
- Data Fields inherited from Template
const XML_PATH_TEMPLATE_ALLOW_SYMLINK = 'dev/template/allow_symlink'
 
- Data Fields inherited from AbstractBlock
const CACHE_GROUP = \Magento\Framework\App\Cache\Type\Block::TYPE_IDENTIFIER
 
const CACHE_KEY_PREFIX = 'BLOCK_'
 

Protected Member Functions

 _construct ()
 
 _toHtml ()
 
- Protected Member Functions inherited from Template
 _toHtml ()
 
- Protected Member Functions inherited from Template
 _construct ()
 
 _toHtml ()
 
 getRootDirectory ()
 
 getMediaDirectory ()
 
- Protected Member Functions inherited from AbstractBlock
 _construct ()
 
 _prepareLayout ()
 
 _beforeToHtml ()
 
 _afterToHtml ($html)
 
 _toHtml ()
 
 _getNotFoundUrl ($route='', $params=['_direct'=> 'core/index/notFound'])
 
 getCacheTags ()
 
 getCacheLifetime ()
 
 _loadCache ()
 
 _saveCache ($data)
 
 _getSidPlaceholder ($cacheKey=null)
 
- Protected Member Functions inherited from DataObject
 _getData ($key)
 
 _underscore ($name)
 

Protected Attributes

 $_defaultWebsiteVarName = 'website'
 
 $_defaultStoreGroupVarName = 'group'
 
 $_defaultStoreVarName = 'store'
 
 $_storeIds
 
 $_hintUrl
 
 $_hasDefaultOption = true
 
 $_template = 'Magento_Backend::store/switcher.phtml'
 
 $_websiteFactory
 
 $_storeGroupFactory
 
 $_storeFactory
 
- Protected Attributes inherited from Template
 $_authorization
 
 $mathRandom
 
 $_backendSession
 
 $formKey
 
 $nameBuilder
 
- Protected Attributes inherited from Template
 $_viewVars = []
 
 $_baseUrl
 
 $_jsUrl
 
 $_allowSymlinks
 
 $_filesystem
 
 $_template
 
 $templateEnginePool
 
 $_storeManager
 
 $_appState
 
 $directory
 
 $templateContext
 
 $pageConfig
 
 $resolver
 
 $validator
 
- Protected Attributes inherited from AbstractBlock
 $_design
 
 $_session
 
 $_sidResolver
 
 $_nameInLayout
 
 $_layout
 
 $jsLayout = []
 
 $_request
 
 $_urlBuilder
 
 $_eventManager
 
 $_frontController
 
 $_assetRepo
 
 $_viewConfig
 
 $_cacheState
 
 $_logger
 
 $_escaper
 
 $filterManager
 
 $_localeDate
 
 $inlineTranslation
 
 $_isScopePrivate = false
 
 $_scopeConfig
 
 $_cache
 
- Protected Attributes inherited from DataObject
 $_data = []
 

Additional Inherited Members

- Static Public Member Functions inherited from AbstractBlock
static extractModuleName ($className)
 
- Static Protected Attributes inherited from DataObject
static $_underscoreCache = []
 

Detailed Description

Store switcher block

@api

Since
100.0.2

Definition at line 15 of file Switcher.php.

Constructor & Destructor Documentation

◆ __construct()

__construct ( \Magento\Backend\Block\Template\Context  $context,
\Magento\Store\Model\WebsiteFactory  $websiteFactory,
\Magento\Store\Model\GroupFactory  $storeGroupFactory,
\Magento\Store\Model\StoreFactory  $storeFactory,
array  $data = [] 
)
Parameters
\Magento\Backend\Block\Template\Context$context
\Magento\Store\Model\WebsiteFactory$websiteFactory
\Magento\Store\Model\GroupFactory$storeGroupFactory
\Magento\Store\Model\StoreFactory$storeFactory
array$data

Definition at line 95 of file Switcher.php.

101  {
102  parent::__construct($context, $data);
103  $this->_websiteFactory = $websiteFactory;
104  $this->_storeGroupFactory = $storeGroupFactory;
105  $this->_storeFactory = $storeFactory;
106  }

Member Function Documentation

◆ _construct()

_construct ( )
protected
Returns
void

Definition at line 111 of file Switcher.php.

112  {
113  parent::_construct();
114 
115  $this->setUseConfirm(true);
116  $this->setUseAjax(true);
117 
118  $this->setShowManageStoresLink(0);
119 
120  if (!$this->hasData('switch_websites')) {
121  $this->setSwitchWebsites(false);
122  }
123  if (!$this->hasData('switch_store_groups')) {
124  $this->setSwitchStoreGroups(false);
125  }
126  if (!$this->hasData('switch_store_views')) {
127  $this->setSwitchStoreViews(true);
128  }
129  $this->setDefaultSelectionName(__('All Store Views'));
130  }
__()
Definition: __.php:13

◆ _toHtml()

_toHtml ( )
protected
Returns
string

Definition at line 503 of file Switcher.php.

504  {
505  if ($this->isShow()) {
506  return parent::_toHtml();
507  }
508  return '';
509  }

◆ getCurrentSelectionName()

getCurrentSelectionName ( )

Get current selection name

Returns
string

Definition at line 414 of file Switcher.php.

415  {
416  if (!($name = $this->getCurrentStoreName())) {
417  if (!($name = $this->getCurrentStoreGroupName())) {
418  if (!($name = $this->getCurrentWebsiteName())) {
419  $name = $this->getDefaultSelectionName();
420  }
421  }
422  }
423  return $name;
424  }
if(!isset($_GET['name'])) $name
Definition: log.php:14

◆ getCurrentStoreGroupName()

getCurrentStoreGroupName ( )

Get current store group name

Returns
string

Definition at line 447 of file Switcher.php.

448  {
449  if ($this->getStoreGroupId() !== null) {
450  $group = $this->_storeGroupFactory->create();
451  $group->load($this->getStoreGroupId());
452  if ($group->getId()) {
453  return $group->getName();
454  }
455  }
456  }
$group
Definition: sections.phtml:16

◆ getCurrentStoreName()

getCurrentStoreName ( )

Get current store view name

Returns
string

Definition at line 463 of file Switcher.php.

464  {
465  if ($this->getStoreId() !== null) {
466  $store = $this->_storeFactory->create();
467  $store->load($this->getStoreId());
468  if ($store->getId()) {
469  return $store->getName();
470  }
471  }
472  }

◆ getCurrentWebsiteName()

getCurrentWebsiteName ( )

Get current website name

Returns
string

Definition at line 431 of file Switcher.php.

432  {
433  if ($this->getWebsiteId() !== null) {
434  $website = $this->_websiteFactory->create();
435  $website->load($this->getWebsiteId());
436  if ($website->getId()) {
437  return $website->getName();
438  }
439  }
440  }

◆ getGroupCollection()

getGroupCollection (   $website)
Parameters
int | \Magento\Store\Model\Website$website
Returns
\Magento\Store\Model\ResourceModel\Group\Collection

Definition at line 217 of file Switcher.php.

218  {
219  if (!$website instanceof \Magento\Store\Model\Website) {
220  $website = $this->_websiteFactory->create()->load($website);
221  }
222  return $website->getGroupCollection();
223  }

◆ getHintHtml()

getHintHtml ( )

Return store switcher hint html

Returns
string

Definition at line 540 of file Switcher.php.

541  {
542  $html = '';
543  $url = $this->getHintUrl();
544  if ($url) {
545  $html = '<div class="admin__field-tooltip tooltip">' . '<a' . ' href="' . $this->escapeUrl(
546  $url
547  ) . '"' . ' onclick="this.target=\'_blank\'"' . ' title="' . __(
548  'What is this?'
549  ) . '"' . ' class="admin__field-tooltip-action action-help"><span>' . __(
550  'What is this?'
551  ) . '</span></a></span>' . ' </div>';
552  }
553  return $html;
554  }
__()
Definition: __.php:13

◆ getHintUrl()

getHintUrl ( )

Return url for store switcher hint

Returns
string

Definition at line 530 of file Switcher.php.

531  {
532  return self::HINT_URL;
533  }

◆ getStoreCollection()

getStoreCollection (   $group)
Parameters
\Magento\Store\Model\Group | int$group
Returns
\Magento\Store\Model\ResourceModel\Store\Collection

Definition at line 295 of file Switcher.php.

296  {
297  if (!$group instanceof \Magento\Store\Model\Group) {
298  $group = $this->_storeGroupFactory->create()->load($group);
299  }
300  $stores = $group->getStoreCollection();
301  $_storeIds = $this->getStoreIds();
302  if (!empty($_storeIds)) {
303  $stores->addIdFilter($_storeIds);
304  }
305  return $stores;
306  }
$group
Definition: sections.phtml:16

◆ getStoreGroupId()

getStoreGroupId ( )
Returns
int|null

Definition at line 283 of file Switcher.php.

284  {
285  if (!$this->hasData('store_group_id')) {
286  $this->setData('store_group_id', (int)$this->getRequest()->getParam($this->getStoreGroupVarName()));
287  }
288  return $this->getData('store_group_id');
289  }
getData($key='', $index=null)
Definition: DataObject.php:119
setData($key, $value=null)
Definition: DataObject.php:72

◆ getStoreGroups()

getStoreGroups (   $website)

Get store groups for specified website

Parameters
\Magento\Store\Model\Website | int$website
Returns
array

Definition at line 231 of file Switcher.php.

232  {
233  if (!$website instanceof \Magento\Store\Model\Website) {
234  $website = $this->_storeManager->getWebsite($website);
235  }
236  return $website->getGroups();
237  }

◆ getStoreGroupVarName()

getStoreGroupVarName ( )
Returns
string

Definition at line 262 of file Switcher.php.

263  {
264  if ($this->hasData('store_group_var_name')) {
265  return (string)$this->getData('store_group_var_name');
266  } else {
267  return (string)$this->_defaultStoreGroupVarName;
268  }
269  }
getData($key='', $index=null)
Definition: DataObject.php:119

◆ getStoreId()

getStoreId ( )
Returns
int|null

Definition at line 333 of file Switcher.php.

334  {
335  if (!$this->hasData('store_id')) {
336  $this->setData('store_id', (int)$this->getRequest()->getParam($this->getStoreVarName()));
337  }
338  return $this->getData('store_id');
339  }
getData($key='', $index=null)
Definition: DataObject.php:119
setData($key, $value=null)
Definition: DataObject.php:72

◆ getStoreIds()

getStoreIds ( )
Returns
array

Definition at line 487 of file Switcher.php.

488  {
489  return $this->_storeIds;
490  }

◆ getStores()

getStores (   $group)

Get store views for specified store group

Parameters
\Magento\Store\Model\Group | int$group
Returns
\Magento\Store\Model\Store[]

Definition at line 314 of file Switcher.php.

315  {
316  if (!$group instanceof \Magento\Store\Model\Group) {
317  $group = $this->_storeManager->getGroup($group);
318  }
319  $stores = $group->getStores();
320  if ($storeIds = $this->getStoreIds()) {
321  foreach (array_keys($stores) as $storeId) {
322  if (!in_array($storeId, $storeIds)) {
323  unset($stores[$storeId]);
324  }
325  }
326  }
327  return $stores;
328  }
$group
Definition: sections.phtml:16

◆ getStoreVarName()

getStoreVarName ( )
Returns
mixed|string

Definition at line 373 of file Switcher.php.

374  {
375  if ($this->hasData('store_var_name')) {
376  return (string)$this->getData('store_var_name');
377  } else {
378  return (string)$this->_defaultStoreVarName;
379  }
380  }
getData($key='', $index=null)
Definition: DataObject.php:119

◆ getSwitchUrl()

getSwitchUrl ( )
Returns
string

Definition at line 385 of file Switcher.php.

386  {
387  if ($url = $this->getData('switch_url')) {
388  return $url;
389  }
390  return $this->getUrl(
391  '*/*/*',
392  [
393  '_current' => true,
394  $this->getStoreVarName() => null,
395  $this->getStoreGroupVarName() => null,
396  $this->getWebsiteVarName() => null,
397  ]
398  );
399  }
getData($key='', $index=null)
Definition: DataObject.php:119

◆ getWebsiteCollection()

getWebsiteCollection ( )
Returns
\Magento\Store\Model\ResourceModel\Website\Collection

Definition at line 135 of file Switcher.php.

136  {
137  $collection = $this->_websiteFactory->create()->getResourceCollection();
138 
139  $websiteIds = $this->getWebsiteIds();
140  if ($websiteIds !== null) {
141  $collection->addIdFilter($this->getWebsiteIds());
142  }
143 
144  return $collection->load();
145  }

◆ getWebsiteId()

getWebsiteId ( )
Returns
int|null

Definition at line 205 of file Switcher.php.

206  {
207  if (!$this->hasData('website_id')) {
208  $this->setData('website_id', (int)$this->getRequest()->getParam($this->getWebsiteVarName()));
209  }
210  return $this->getData('website_id');
211  }
getData($key='', $index=null)
Definition: DataObject.php:119
setData($key, $value=null)
Definition: DataObject.php:72

◆ getWebsites()

getWebsites ( )

Get websites

Returns
\Magento\Store\Model\Website[]

Definition at line 152 of file Switcher.php.

153  {
154  $websites = $this->_storeManager->getWebsites();
155  if ($websiteIds = $this->getWebsiteIds()) {
156  $websites = array_intersect_key($websites, array_flip($websiteIds));
157  }
158  return $websites;
159  }

◆ getWebsiteVarName()

getWebsiteVarName ( )
Returns
string

Definition at line 184 of file Switcher.php.

185  {
186  if ($this->hasData('website_var_name')) {
187  return (string)$this->getData('website_var_name');
188  } else {
189  return (string)$this->_defaultWebsiteVarName;
190  }
191  }
getData($key='', $index=null)
Definition: DataObject.php:119

◆ hasDefaultOption()

hasDefaultOption (   $hasDefaultOption = null)

Set/Get whether the switcher should show default option

Parameters
bool$hasDefaultOption
Returns
bool

Definition at line 517 of file Switcher.php.

518  {
519  if (null !== $hasDefaultOption) {
520  $this->_hasDefaultOption = $hasDefaultOption;
521  }
523  }

◆ hasScopeSelected()

hasScopeSelected ( )
Returns
bool

Definition at line 404 of file Switcher.php.

405  {
406  return $this->getStoreId() !== null || $this->getStoreGroupId() !== null || $this->getWebsiteId() !== null;
407  }

◆ isShow()

isShow ( )
Returns
bool

Definition at line 495 of file Switcher.php.

496  {
497  return !$this->_storeManager->isSingleStoreMode();
498  }

◆ isStoreGroupSelected()

isStoreGroupSelected ( \Magento\Store\Model\Group  $group)
Parameters
\Magento\Store\Model\Group$group
Returns
bool

Definition at line 275 of file Switcher.php.

276  {
277  return $this->getStoreGroupId() === $group->getId() && $this->getStoreGroupId() === null;
278  }
$group
Definition: sections.phtml:16

◆ isStoreGroupSwitchEnabled()

isStoreGroupSwitchEnabled ( )

Check if can switch to store group

Returns
bool

Definition at line 244 of file Switcher.php.

245  {
246  return (bool)$this->getData('switch_store_groups');
247  }
getData($key='', $index=null)
Definition: DataObject.php:119

◆ isStoreSelected()

isStoreSelected ( \Magento\Store\Model\Store  $store)
Parameters
\Magento\Store\Model\Store$store
Returns
bool

Definition at line 345 of file Switcher.php.

346  {
347  return $this->getStoreId() !== null && (int)$this->getStoreId() === (int)$store->getId();
348  }

◆ isStoreSwitchEnabled()

isStoreSwitchEnabled ( )

Check if can switch to store views

Returns
bool

Definition at line 355 of file Switcher.php.

356  {
357  return (bool)$this->getData('switch_store_views');
358  }
getData($key='', $index=null)
Definition: DataObject.php:119

◆ isUsingIframe()

isUsingIframe ( )

Get whether iframe is being used

Returns
bool

Definition at line 561 of file Switcher.php.

562  {
563  if ($this->hasData('is_using_iframe')) {
564  return (bool)$this->getData('is_using_iframe');
565  }
566  return false;
567  }
getData($key='', $index=null)
Definition: DataObject.php:119

◆ isWebsiteSelected()

isWebsiteSelected ( \Magento\Store\Model\Website  $website)
Parameters
\Magento\Store\Model\Website$website
Returns
bool

Definition at line 197 of file Switcher.php.

198  {
199  return $this->getWebsiteId() === $website->getId() && $this->getStoreId() === null;
200  }

◆ isWebsiteSwitchEnabled()

isWebsiteSwitchEnabled ( )

Check if can switch to websites

Returns
bool

Definition at line 166 of file Switcher.php.

167  {
168  return (bool)$this->getData('switch_websites');
169  }
getData($key='', $index=null)
Definition: DataObject.php:119

◆ setStoreGroupVarName()

setStoreGroupVarName (   $varName)
Parameters
string$varName
Returns
$this

Definition at line 253 of file Switcher.php.

254  {
255  $this->setData('store_group_var_name', $varName);
256  return $this;
257  }
setData($key, $value=null)
Definition: DataObject.php:72

◆ setStoreIds()

setStoreIds (   $storeIds)
Parameters
array$storeIds
Returns
$this

Definition at line 478 of file Switcher.php.

479  {
480  $this->_storeIds = $storeIds;
481  return $this;
482  }

◆ setStoreVarName()

setStoreVarName (   $varName)
Parameters
string$varName
Returns
$this

Definition at line 364 of file Switcher.php.

365  {
366  $this->setData('store_var_name', $varName);
367  return $this;
368  }
setData($key, $value=null)
Definition: DataObject.php:72

◆ setWebsiteVarName()

setWebsiteVarName (   $varName)
Parameters
string$varName
Returns
$this

Definition at line 175 of file Switcher.php.

176  {
177  $this->setData('website_var_name', $varName);
178  return $this;
179  }
setData($key, $value=null)
Definition: DataObject.php:72

Field Documentation

◆ $_defaultStoreGroupVarName

$_defaultStoreGroupVarName = 'group'
protected

Definition at line 34 of file Switcher.php.

◆ $_defaultStoreVarName

$_defaultStoreVarName = 'store'
protected

Definition at line 41 of file Switcher.php.

◆ $_defaultWebsiteVarName

$_defaultWebsiteVarName = 'website'
protected

Definition at line 27 of file Switcher.php.

◆ $_hasDefaultOption

$_hasDefaultOption = true
protected

Definition at line 58 of file Switcher.php.

◆ $_hintUrl

$_hintUrl
protected

Definition at line 53 of file Switcher.php.

◆ $_storeFactory

$_storeFactory
protected

Definition at line 86 of file Switcher.php.

◆ $_storeGroupFactory

$_storeGroupFactory
protected

Definition at line 79 of file Switcher.php.

◆ $_storeIds

$_storeIds
protected

Definition at line 46 of file Switcher.php.

◆ $_template

$_template = 'Magento_Backend::store/switcher.phtml'
protected

Definition at line 65 of file Switcher.php.

◆ $_websiteFactory

$_websiteFactory
protected

Definition at line 72 of file Switcher.php.

◆ HINT_URL

const HINT_URL = 'http://docs.magento.com/m2/ce/user_guide/configuration/scope.html'

URL for store switcher hint

Definition at line 20 of file Switcher.php.


The documentation for this class was generated from the following file: