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 |
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. |
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. |
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 |