PHP Class Smile\ElasticsuiteCatalog\Plugin\Indexer\Stock\ReindexProductsAfterStockUpdate

Used to index products into ES after their stock information are indexed by legacy Magento CatalogInventory indexer.
Author: Romain Ruaud ([email protected])
Inheritance: extends Smile\ElasticsuiteCatalog\Plugin\Indexer\AbstractIndexerPlugin
Show file Open project: smile-sa/elasticsuite

Public Methods

Method Description
aroundExecute ( Magento\CatalogInventory\Model\Indexer\Stock $subject, Closure $proceed, int[] $productIds ) : void
aroundExecuteList ( Magento\CatalogInventory\Model\Indexer\Stock $subject, Closure $proceed, array $productIds ) : void
aroundExecuteRow ( Magento\CatalogInventory\Model\Indexer\Stock $subject, Closure $proceed, integer $productId ) : void

Method Details

aroundExecute() public method

public aroundExecute ( Magento\CatalogInventory\Model\Indexer\Stock $subject, Closure $proceed, int[] $productIds ) : void
$subject Magento\CatalogInventory\Model\Indexer\Stock The CatalogInventory indexer
$proceed Closure The ::execute() function of $subject
$productIds int[] The product ids being reindexed
return void

aroundExecuteList() public method

public aroundExecuteList ( Magento\CatalogInventory\Model\Indexer\Stock $subject, Closure $proceed, array $productIds ) : void
$subject Magento\CatalogInventory\Model\Indexer\Stock The CatalogInventory indexer
$proceed Closure The ::execute() function of $subject
$productIds array The product ids being reindexed
return void

aroundExecuteRow() public method

public aroundExecuteRow ( Magento\CatalogInventory\Model\Indexer\Stock $subject, Closure $proceed, integer $productId ) : void
$subject Magento\CatalogInventory\Model\Indexer\Stock The CatalogInventory indexer
$proceed Closure The ::executeRow() function of $subject
$productId integer The product id being reindexed
return void