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

Author: Romain Ruaud ([email protected])
Inheritance: extends Smile\ElasticsuiteCatalog\Plugin\Indexer\AbstractIndexerPlugin
Show file Open project: smile-sa/elasticsuite

Public Methods

Method Description
aroundReindex ( Magento\Catalog\Model\Category $subject, callable $proceed ) : Magento\Catalog\Model\Category Reindex category's products after reindexing the category

Method Details

aroundReindex() public method

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