Log in
Model

Item

Magento\Backend\Model\Menu\Item

What it does

This class represents a single menu item in Magento 2's backend/admin navigation system.

Developers use it to define menu entries with properties like title, URL, permissions (ACL), tooltips, and nested submenus.

It handles visibility logic based on module status, configuration dependencies, and user permissions to control what appears in the admin menu.

Public Methods

  • getId()
  • getTarget()
  • hasChildren()
  • getChildren()
  • getUrl()
  • getAction()
  • setAction()
  • hasClickCallback()
  • getClickCallback()
  • getTitle()
  • setTitle()
  • hasTooltip()
  • getTooltip()
  • setTooltip()
  • setModule()
  • setModuleDependency()
  • setConfigDependency()
  • isDisabled()
  • isAllowed()
  • toArray()
  • populateFromArray()