PHP Класс Smile\ElasticsuiteCatalog\Setup\InstallData

Автор: Romain Ruaud ([email protected])
Автор: Aurelien FOUCRET ([email protected])
Наследование: implements Magento\Framework\Setup\InstallDataInterface
Показать файл Открыть проект

Открытые методы

Метод Описание
__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

Приватные методы

Метод Описание
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.

Описание методов

__construct() публичный Метод

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