Definition at line 12 of file Factory.php.
◆ __construct()
Construct
- Parameters
-
\Magento\Framework\ObjectManagerInterface | $objectManager | |
Definition at line 26 of file Factory.php.
◆ create()
create |
( |
|
$className, |
|
|
array |
$data = [] |
|
) |
| |
Create layer filter
- Parameters
-
string | $className | |
array | $data | |
- Returns
- \Magento\Catalog\Model\Layer\Filter\Attribute
- Exceptions
-
Definition at line 39 of file Factory.php.
43 if (!$filter instanceof \
Magento\Catalog\Model\Layer\Filter\AbstractFilter) {
44 throw new \Magento\Framework\Exception\LocalizedException(
45 __(
'%1 doesn\'t extends \Magento\Catalog\Model\Layer\Filter\AbstractFilter',
$className)
◆ $_objectManager
The documentation for this class was generated from the following file:
- vendor/magento/module-catalog/Model/Layer/Filter/Factory.php