Метод | Описание | |
---|---|---|
__construct ( Magento\Backend\App\Action\Context $context, Smile\ElasticsuiteVirtualCategory\Model\PreviewFactory $previewModelFactory, Magento\Catalog\Model\CategoryFactory $categoryFactory, Magento\Framework\Json\Helper\Data $jsonHelper ) | Constructor. | |
execute ( ) | {@inheritDoc} |
Метод | Описание | |
---|---|---|
_isAllowed ( ) |
Метод | Описание | |
---|---|---|
addSelectedProducts ( Magento\Catalog\Api\Data\CategoryInterface $category ) | Add user selected products. | |
addVirtualCategoryData ( Magento\Catalog\Api\Data\CategoryInterface $category ) | Append virtual rule params to the category. | |
getCategory ( ) : Magento\Catalog\Api\Data\CategoryInterface | Load current category and apply admin current modifications (added and removed products, updated virtual rule, . | |
getPageSize ( ) : integer | Return the preview page size. | |
getPreviewObject ( ) : |
Load and initialize the preview model. | |
loadCategory ( ) : Magento\Catalog\Api\Data\CategoryInterface | Load current category using the request params. | |
setSortedProducts ( Magento\Catalog\Api\Data\CategoryInterface $category ) | Append products sorted by the user to the category. |
public __construct ( Magento\Backend\App\Action\Context $context, Smile\ElasticsuiteVirtualCategory\Model\PreviewFactory $previewModelFactory, Magento\Catalog\Model\CategoryFactory $categoryFactory, Magento\Framework\Json\Helper\Data $jsonHelper ) | ||
$context | Magento\Backend\App\Action\Context | Controller context. |
$previewModelFactory | Smile\ElasticsuiteVirtualCategory\Model\PreviewFactory | Preview model factory. |
$categoryFactory | Magento\Catalog\Model\CategoryFactory | Category factory. |
$jsonHelper | Magento\Framework\Json\Helper\Data | JSON Helper. |