/** * Is Attribute Filterable as Term * * @param \Magento\Catalog\Model\Entity\Attribute $attribute * @return bool */ private function isTermFilterableAttribute($attribute) { return ($attribute->getIsVisibleInAdvancedSearch() || $attribute->getIsFilterable() || $attribute->getIsFilterableInSearch()) && in_array($attribute->getFrontendInput(), ['select', 'multiselect']); }