public function apply(\Magento\Framework\App\RequestInterface $request) { $filter = $this->searchHelper->getFilterValue($this->getRequestVar()); if (!empty($filter)) { $this->getLayer()->getProductCollection()->addFieldToFilter($this->getRequestVar(), $filter); $values = $this->searchHelper->filterValueToArray($filter); foreach ($values as $value) { $text = $this->getOptionText($value); $item = $this->_createItem($text, $value); $item->setSelectedValues($values); $this->getLayer()->getState()->addFilter($item); } $this->_updateItems($values); } }