Smile\ElasticsuiteCatalog\Setup\InstallData::updateCategoryIsAnchorAttribute PHP Метод

updateCategoryIsAnchorAttribute() приватный Метод

Update is anchor attribute (hidden frontend input, null source model, enabled by default).
private updateCategoryIsAnchorAttribute ( ) : void
Результат void
    private function updateCategoryIsAnchorAttribute()
    {
        $this->eavSetup->updateAttribute(Category::ENTITY, 'is_anchor', 'frontend_input', 'hidden');
        $this->eavSetup->updateAttribute(Category::ENTITY, 'is_anchor', 'source_model', null);
        $this->updateAttributeDefaultValue(Category::ENTITY, 'is_anchor', 1, [\Magento\Catalog\Model\Category::TREE_ROOT_ID]);
    }