Log in
Model

LayerCategoryConfig

Magento\Catalog\Model\Config\LayerCategoryConfig

What it does

This class manages the configuration for displaying category filters in Magento 2's layered navigation (faceted search).

Developers use it to check whether the category filter should be shown in the sidebar navigation based on store-level configuration settings.

It retrieves the setting from the admin configuration path 'catalog/layered_navigation/display_category'.

Public Methods

  • isCategoryFilterVisibleInLayerNavigation()