Log in
Model

AbstractElement

Magento\Config\Model\Config\Structure\AbstractElement

What it does

This abstract class serves as the base for all configuration structure elements in Magento 2's system configuration (like tabs, sections, groups, and fields).

Developers extend this class when creating custom configuration elements, as it provides core functionality for managing element data, visibility rules, scope handling, and translation.

It handles common operations like determining if an element should be displayed based on store scope, module status, and single-store mode.

Public Methods

  • setData()
  • getData()
  • getId()
  • getLabel()
  • getComment()
  • getFrontendModel()
  • getAttribute()
  • isVisible()
  • getClass()
  • getPath()
  • getElementVisibility()