PHP Class Smile\ElasticsuiteCatalog\Setup\InstallData

Author: Romain Ruaud ([email protected])
Author: Aurelien FOUCRET ([email protected])
Inheritance: implements Magento\Framework\Setup\InstallDataInterface
Show file Open project: smile-sa/elasticsuite

Public Methods

Method Description
__construct ( Magento\Eav\Setup\EavSetupFactory $eavSetupFactory, Magento\Framework\EntityManager\MetadataPool $metadataPool, Magento\Framework\Indexer\IndexerInterfaceFactory $indexerFactory ) Class Constructor
install ( Magento\Framework\Setup\ModuleDataSetupInterface $setup, Magento\Framework\Setup\ModuleContextInterface $context ) : void

Private Methods

Method Description
addCategoryNameSearchAttribute ( ) : void Create attribute on category to enable/disable name indexation for search.
getConnection ( ) : Magento\Framework\DB\Adapter\AdapterInterface DB connection.
getIndexer ( string $indexerId ) : Magento\Framework\Indexer\IndexerInterface Retrieve an indexer by its Id
updateAttributeDefaultValue ( integer | string $entityTypeId, integer | string $attributeId, mixed $value, array $excludedIds = [] ) : void Update attribute value for an entity with a default value.
updateCategoryIsAnchorAttribute ( ) : void Update is anchor attribute (hidden frontend input, null source model, enabled by default).
updateDefaultValuesForNameAttributes ( ) : void Update default values for the name field of category and product entities.

Method Details

__construct() public method

Class Constructor
public __construct ( Magento\Eav\Setup\EavSetupFactory $eavSetupFactory, Magento\Framework\EntityManager\MetadataPool $metadataPool, Magento\Framework\Indexer\IndexerInterfaceFactory $indexerFactory )
$eavSetupFactory Magento\Eav\Setup\EavSetupFactory Eav setup factory.
$metadataPool Magento\Framework\EntityManager\MetadataPool Metadata Pool.
$indexerFactory Magento\Framework\Indexer\IndexerInterfaceFactory Indexer Factory.

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