54 $this->objectManager = $objectManger;
68 $filter = $this->createFilterInstance($filterAlias,
$arguments);
70 throw new \UnexpectedValueException(
71 'Filter object must implement Zend_Filter_Interface interface, ' . get_class($filter) .
' was given.' 85 protected function createFilterInstance($filterAlias,
$arguments)
89 if (
$factory->canCreateFilter($filterAlias)) {
93 throw new \InvalidArgumentException(
'Filter was not found by given alias ' . $filterAlias);
104 if (
null === $this->factoryInstances) {
105 foreach ($this->config->getFactories() as
$class) {
108 throw new \UnexpectedValueException(
109 'Filter factory must implement FilterFactoryInterface interface, ' . get_class(
114 $this->factoryInstances[] =
$factory;
136 return $this->createFilterInstance($filterAlias,
$arguments)->filter(
$value);
__call($filterAlias, array $arguments=[])
$_option $_optionId $class
__construct(\Magento\Framework\ObjectManagerInterface $objectManger, FilterManager\Config $config)