Model
Config
Magento\Catalog\Model\Config
What it does
The Catalog Config Model provides centralized access to catalog configuration data and metadata in Magento 2.
Developers use this class to retrieve product attributes, attribute sets, attribute groups, product types, and sorting options.
It's commonly used when working with product listings, imports/exports, or building custom catalog features that need to access EAV attribute information.
Public Methods
- setStoreId()
- getStoreId()
- loadAttributeSets()
- getAttributeSetName()
- getAttributeSetId()
- loadAttributeGroups()
- getAttributeGroupName()
- getAttributeGroupId()
- loadProductTypes()
- getProductTypeId()
- getProductTypeName()
- getSourceOptionId()
- getProductAttributes()
- getAttributesUsedInProductListing()
- getAttributesUsedForSortBy()
- getAttributeUsedForSortByArray()
- getProductListDefaultSortBy()