Log in
Factory

Filter\Factory

Magento\Catalog\Model\Layer\Filter\Factory

What it does

This factory class creates instances of catalog layer filter objects (like price filters, attribute filters) used in product listing pages.

Developers use this to instantiate filter objects dynamically based on the filter type needed, ensuring all created filters extend the required AbstractFilter base class.

It's commonly used when building layered navigation or filtering functionality in category and search pages.

Public Methods

  • create()