Smile\ElasticsuiteCatalog\Model\Autocomplete\Product\Attribute\DataProvider::loadAttributeCollection PHP Method

loadAttributeCollection() private method

Load the attributes displayed in the suggest.
private loadAttributeCollection ( ) : DataProvider
return DataProvider
    private function loadAttributeCollection()
    {
        $storeId = $this->storeManager->getStore()->getId();
        $this->attributeCollection->addStoreLabel($storeId)->addFieldToFilter('is_displayed_in_autocomplete', true)->load();
        return $this;
    }