PHP Класс Smile\ElasticsuiteCatalog\Helper\Autocomplete

Автор: Romain Ruaud ([email protected])
Наследование: extends Smile\ElasticsuiteCore\Helper\Autocomplete
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
__construct ( Magento\Framework\App\Helper\Context $context, Magento\Store\Model\StoreManagerInterface $storeManager, Magento\CatalogInventory\Api\StockConfigurationInterface $stockConfiguration, Mapping $mappingHelper ) Constructor.
getAttributeAutocompleteField ( Magento\Catalog\Api\Data\ProductAttributeInterface $attribute ) : string ES field used in attribute autocomplete.
isShowOutOfStock ( integer $storeId = null ) : boolean Check if Stock configuration allows to display out of stock products

Описание методов

__construct() публичный метод

Constructor.
public __construct ( Magento\Framework\App\Helper\Context $context, Magento\Store\Model\StoreManagerInterface $storeManager, Magento\CatalogInventory\Api\StockConfigurationInterface $stockConfiguration, Mapping $mappingHelper )
$context Magento\Framework\App\Helper\Context Helper context.
$storeManager Magento\Store\Model\StoreManagerInterface Store manager.
$stockConfiguration Magento\CatalogInventory\Api\StockConfigurationInterface Stock Configuration Interface.
$mappingHelper Smile\ElasticsuiteCore\Helper\Mapping Mapping helper.

getAttributeAutocompleteField() публичный метод

ES field used in attribute autocomplete.
public getAttributeAutocompleteField ( Magento\Catalog\Api\Data\ProductAttributeInterface $attribute ) : string
$attribute Magento\Catalog\Api\Data\ProductAttributeInterface Attribute.
Результат string

isShowOutOfStock() публичный метод

Check if Stock configuration allows to display out of stock products
public isShowOutOfStock ( integer $storeId = null ) : boolean
$storeId integer The store Id. Will use current store if null.
Результат boolean