PHP Class Smile\ElasticsuiteCatalog\Plugin\Indexer\Category\Save\ReindexCategoryAfterSave

Author: Romain Ruaud ([email protected])
Mostra file Open project: smile-sa/elasticsuite

Public Methods

Method Description
__construct ( Magento\Framework\Indexer\IndexerRegistry $indexerRegistry ) ReindexCategoryAfterSave constructor.
aroundReindex ( Magento\Catalog\Model\Category $subject, callable $proceed ) : Magento\Catalog\Model\Category Reindex category's data after into search engine after reindexing the category

Method Details

__construct() public method

ReindexCategoryAfterSave constructor.
public __construct ( Magento\Framework\Indexer\IndexerRegistry $indexerRegistry )
$indexerRegistry Magento\Framework\Indexer\IndexerRegistry The indexer registry

aroundReindex() public method

Reindex category's data after into search engine after reindexing the category
public aroundReindex ( Magento\Catalog\Model\Category $subject, callable $proceed ) : Magento\Catalog\Model\Category
$subject Magento\Catalog\Model\Category The category being reindexed
$proceed callable The parent function we are plugged on : Magento\Catalog\Model\Category::reindex()
return Magento\Catalog\Model\Category