Method | Description | |
---|---|---|
__construct ( Magento\Framework\App\Helper\Context $context, Magento\Store\Model\StoreManagerInterface $storeManager, Magento\CatalogInventory\Api\StockConfigurationInterface $stockConfiguration, |
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 |
public __construct ( Magento\Framework\App\Helper\Context $context, Magento\Store\Model\StoreManagerInterface $storeManager, Magento\CatalogInventory\Api\StockConfigurationInterface $stockConfiguration, |
||
$context | Magento\Framework\App\Helper\Context | Helper context. |
$storeManager | Magento\Store\Model\StoreManagerInterface | Store manager. |
$stockConfiguration | Magento\CatalogInventory\Api\StockConfigurationInterface | Stock Configuration Interface. |
$mappingHelper | Mapping helper. |
public getAttributeAutocompleteField ( Magento\Catalog\Api\Data\ProductAttributeInterface $attribute ) : string | ||
$attribute | Magento\Catalog\Api\Data\ProductAttributeInterface | Attribute. |
return | string |
public isShowOutOfStock ( integer $storeId = null ) : boolean | ||
$storeId | integer | The store Id. Will use current store if null. |
return | boolean |