public install ( Magento\Framework\Setup\ModuleDataSetupInterface $setup, Magento\Framework\Setup\ModuleContextInterface $context ) : void | ||
$setup | Magento\Framework\Setup\ModuleDataSetupInterface | The setup interface |
$context | Magento\Framework\Setup\ModuleContextInterface | The module Context |
Результат | void |
public function install(ModuleDataSetupInterface $setup, ModuleContextInterface $context)
{
$setup->startSetup();
$this->eavSetup = $this->eavSetupFactory->create(['setup' => $setup]);
$this->addCategoryNameSearchAttribute();
$this->updateCategoryIsAnchorAttribute();
$this->updateDefaultValuesForNameAttributes();
$this->getIndexer('elasticsuite_categories_fulltext')->reindexAll();
$setup->endSetup();
}