Magento 2 Create custom indexer

Loading...
Magento 2 Create custom indexer

How to create a custom indexer

In order to do it, we will create a custom module. First of all, the registration.php file:


use \Magento\Framework\Component\ComponentRegistrar;

ComponentRegistrar::register
(ComponentRegistrar::MODULE,
'YVendor_NewMod',
__DIR__
);

And the etc/module.xml file: