Smile\ElasticsuiteCatalog\Helper\Attribute::getIndexOptionsText PHP Method

getIndexOptionsText() public method

Values are localized for a store id.
public getIndexOptionsText ( Magento\Eav\Model\Entity\Attribute\AttributeInterface $attribute, integer $storeId, array $optionIds ) : array
$attribute Magento\Eav\Model\Entity\Attribute\AttributeInterface Product attribute.
$storeId integer Store id
$optionIds array Array of options ids.
return array
    public function getIndexOptionsText(AttributeInterface $attribute, $storeId, array $optionIds)
    {
        $mapperKey = sprintf("options_%s_%s", $attribute->getId(), $storeId);
        if (!isset($this->attributeMappers[$mapperKey])) {
            $this->attributeMappers[$mapperKey] = function ($optionId) use($attribute, $storeId) {
                return $this->getIndexOptionText($attribute, $storeId, $optionId);
            };
        }
        $optionValues = array_map($this->attributeMappers[$mapperKey], $optionIds);
        return $optionValues;
    }