Log in
Interface

FilterInterface

Magento\Catalog\Model\Layer\Filter\FilterInterface

What it does

This interface defines the contract for layered navigation filters in Magento 2 catalog.

Developers implement this interface when creating custom product filters (like price, color, or category filters) that customers use to narrow down product searches on category and search result pages.

It handles filter application, item management, and integration with the catalog layer.

Public Methods

  • setRequestVar()
  • getRequestVar()
  • getResetValue()
  • getCleanValue()
  • apply()
  • getItemsCount()
  • getItems()
  • setItems()
  • getLayer()
  • setAttributeModel()
  • getAttributeModel()
  • getName()
  • getStoreId()
  • setStoreId()
  • getWebsiteId()
  • setWebsiteId()
  • getClearLinkText()