Log in
Model

DataProvider

Magento\Catalog\Model\Category\DataProvider

What it does

This class provides data and metadata for the Magento 2 category edit form in the admin panel.

Developers use this class when they need to customize the category form UI, add custom fields, modify field behavior, or control how category data is loaded and displayed.

It handles attribute configuration, validation rules, scope labels, and prepares the form structure based on EAV attributes and UI component definitions.

Public Methods

  • getMeta()
  • prepareMeta()
  • getData()
  • getAttributesMeta()
  • getCurrentCategory()
  • getScopeLabel()
  • getDefaultMetaData()