cancel
Showing results for 
Search instead for 
Did you mean: 

Magento 2 change status of custom indexer

Magento 2 change status of custom indexer

Hello,

I am working on creating custom indexer in magento 2. I have successfully created custom indexer but i want to change status "Require Reindex" of my custom indexer on following event types

1.Save - when entity is saved,

2.Delete - when entity is deleted,

3.Mass Update - when a batch of entities was updated,


when above events has run at that time i want to change the custom indexer status,

Please let me know how it is possible into magento 2? in magento 1 it is possible using _registerEvent().

Thanks
Hardik patel

Tags (1)