Log in
Model

Validator

Magento\Backend\Model\Menu\Item\Validator

What it does

This validator class ensures that Magento 2 backend menu items have valid configuration data before they're created.

Developers use it during menu XML configuration processing to validate required parameters like ID, title, and resource permissions, and to enforce formatting rules like ID uniqueness and proper ACL resource syntax.

Public Methods

  • validate()
  • validateParam()