Property | Type | Description | |
---|---|---|---|
$containersSource | |||
$defaultContainerVar | string | Name of container variable | |
$defaultStoreVarName | string | Name of store variable | |
$hasDefaultOption | boolean | ||
$storeFactory | Magento\Store\Model\StoreFactory | Store Factory | |
$storeIds | array |
Method | Description | |
---|---|---|
__construct ( Magento\Backend\Block\Template\Context $context, Magento\Store\Model\StoreFactory $storeFactory, |
Class constructor | |
getContainerCode ( ) : string | null | Retrieve container code | |
getContainerLabel ( array $container ) : mixed | Get container name | |
getContainerName ( array $container ) : mixed | Get container name | |
getContainerVarName ( ) : string | Retrieve container var name | |
getContainers ( ) : array | Get containers | |
getCurrentContainerLabel ( ) : string | Get current container name | |
getCurrentContainerName ( ) : string | Get current container name | |
getCurrentSelectionName ( ) : string | Get current selection name | |
getCurrentStoreName ( ) : string | Get current store view name | |
getStoreId ( ) : integer | null | Retrieve Store Id | |
getStoreVarName ( ) : mixed | string | Retrieve store var name | |
getStores ( ) : Magento\Store\Model\Store[] | Get store views | |
getSwitchUrl ( ) : string | Retrieve switch url | |
hasDefaultOption ( boolean $hasDefaultOption = null ) : boolean | Set/Get whether the switcher should show default option | |
hasScopeSelected ( ) : boolean | ||
isContainerSelected ( array $container ) : boolean | Check if container is selected | |
isContainerSwitchEnabled ( ) : boolean | Check if can switch to containers | |
isFullText ( array $container ) : boolean | Check if container is used for fulltext queries | |
isStoreSelected ( Magento\Store\Model\Store $store ) : boolean | ||
isStoreSwitchEnabled ( ) : boolean | Check if can switch to store views | |
setContainerVarName ( string $varName ) | ||
setStoreVarName ( string $varName ) |
Method | Description | |
---|---|---|
_construct ( ) : void | Internal constructor |
public __construct ( Magento\Backend\Block\Template\Context $context, Magento\Store\Model\StoreFactory $storeFactory, |
||
$context | Magento\Backend\Block\Template\Context | Application context |
$storeFactory | Magento\Store\Model\StoreFactory | Store factory |
$containersSource | The Containers source model | |
$data | array | The data |
public getContainerCode ( ) : string | null | ||
return | string | null |
public getContainerLabel ( array $container ) : mixed | ||
$container | array | The container name |
return | mixed |
public getContainerName ( array $container ) : mixed | ||
$container | array | The container name |
return | mixed |
public getContainerVarName ( ) : string | ||
return | string |
public getCurrentContainerLabel ( ) : string | ||
return | string |
public getCurrentContainerName ( ) : string | ||
return | string |
public getCurrentSelectionName ( ) : string | ||
return | string |
public getCurrentStoreName ( ) : string | ||
return | string |
public getStoreId ( ) : integer | null | ||
return | integer | null |
public getStoreVarName ( ) : mixed | string | ||
return | mixed | string |
public getStores ( ) : Magento\Store\Model\Store[] | ||
return | Magento\Store\Model\Store[] |
public hasDefaultOption ( boolean $hasDefaultOption = null ) : boolean | ||
$hasDefaultOption | boolean | If witcher has default option |
return | boolean |
public isContainerSelected ( array $container ) : boolean | ||
$container | array | The container |
return | boolean |
public isContainerSwitchEnabled ( ) : boolean | ||
return | boolean |
public isFullText ( array $container ) : boolean | ||
$container | array | The container name |
return | boolean |
public isStoreSelected ( Magento\Store\Model\Store $store ) : boolean | ||
$store | Magento\Store\Model\Store | The store |
return | boolean |
public isStoreSwitchEnabled ( ) : boolean | ||
return | boolean |
public setContainerVarName ( string $varName ) | ||
$varName | string | The var name |
public setStoreVarName ( string $varName ) | ||
$varName | string | The var name |
protected Containers,Smile\ElasticsuiteCore\Model\Search\Request\Source $containersSource | ||
return |
protected string $defaultContainerVar | ||
return | string |
protected string $defaultStoreVarName | ||
return | string |
protected StoreFactory,Magento\Store\Model $storeFactory | ||
return | Magento\Store\Model\StoreFactory |