Log in
Model

Config

Magento\Catalog\Model\ResourceModel\Config

What it does

This resource model handles database operations for retrieving catalog product attribute configurations in Magento 2.

Developers use it to fetch attributes that are specifically marked for use in product listings or sort-by functionality on category pages.

It's commonly utilized when building product list pages, layered navigation, or custom sorting options that need to query which attributes are enabled for frontend display.

Public Methods

  • setStoreId()
  • getStoreId()
  • getEntityTypeId()
  • getAttributesUsedInListing()
  • getAttributesUsedForSortBy()