Log in
Model

AvailabilityFlag

Magento\Catalog\Model\Layer\Category\AvailabilityFlag

What it does

This class determines whether layered navigation filters should be displayed on category pages.

Developers use this to control the visibility of filter options based on whether there are filterable items available or if filters are currently applied.

It's particularly useful for hiding empty filter blocks when no filtering options exist.

Public Methods

  • isEnabled()