Ejemplo n.º 1
0
 /**
  * @param FilterItem[] $filterItems
  * @param Option $swatchOption
  * @return array
  */
 protected function getFilterOption(array $filterItems, Option $swatchOption)
 {
     $resultOption = false;
     $filterItem = $this->getFilterItemById($filterItems, $swatchOption->getValue());
     if ($filterItem && $this->isOptionVisible($filterItem)) {
         $resultOption = $this->getOptionViewData($filterItem, $swatchOption);
     }
     return $resultOption;
 }