Smile\ElasticsuiteCatalog\Setup\InstallData::install PHP Method

install() public method

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
return 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();
    }