Smile\ElasticsuiteCatalog\Model\Eav\Indexer\Fulltext\Datasource\AbstractAttributeData::__construct PHP Method

__construct() public method

Constructor
public __construct ( AbstractAttributeData $resourceModel, Smile\ElasticsuiteCore\Index\Mapping\FieldFactory $fieldFactory, Attribute $attributeHelper, array $indexedBackendModels = [] )
$resourceModel Smile\ElasticsuiteCatalog\Model\ResourceModel\Eav\Indexer\Fulltext\Datasource\AbstractAttributeData Resource model.
$fieldFactory Smile\ElasticsuiteCore\Index\Mapping\FieldFactory Mapping field factory.
$attributeHelper Smile\ElasticsuiteCatalog\Helper\Attribute Attribute helper.
$indexedBackendModels array List of indexed backend models added to the default list.
    public function __construct(ResourceModel $resourceModel, FieldFactory $fieldFactory, ProductAttributeHelper $attributeHelper, array $indexedBackendModels = [])
    {
        $this->resourceModel = $resourceModel;
        $this->attributeHelper = $attributeHelper;
        $this->fieldFactory = $fieldFactory;
        if (is_array($indexedBackendModels) && !empty($indexedBackendModels)) {
            $indexedBackendModels = array_values($indexedBackendModels);
            $this->indexedBackendModels = array_merge($indexedBackendModels, $this->indexedBackendModels);
        }
        $this->initAttributes();
    }