private canIndexAttribute ( Magento\Eav\Model\Entity\Attribute\AttributeInterface $attribute ) : boolean | ||
$attribute | Magento\Eav\Model\Entity\Attribute\AttributeInterface | Entity attribute. |
return | boolean |
private function canIndexAttribute(AttributeInterface $attribute)
{
$canIndex = $attribute->getBackendType() != 'static';
if ($canIndex && $attribute->getBackendModel()) {
$canIndex = in_array($attribute->getBackendModel(), $this->indexedBackendModels);
}
return $canIndex;
}