Log in
Model

AbstractCommand

Magento\Backend\Model\Menu\Builder\AbstractCommand

What it does

This abstract class serves as the base for implementing menu builder commands using the Chain of Responsibility pattern.

Developers extend this class to create specific menu modification commands (add, remove, update items) that can be chained together and executed sequentially on menu item parameters.

It's used internally by Magento's backend menu building system to process menu structure definitions from XML configuration.

Public Methods

  • getId()
  • chain()
  • execute()