interface MenuInterface

Same name and namespace in other branches
  1. 11.x core/modules/system/src/MenuInterface.php \Drupal\system\MenuInterface
  2. 9 core/modules/system/src/MenuInterface.php \Drupal\system\MenuInterface
  3. 8.9.x core/modules/system/src/MenuInterface.php \Drupal\system\MenuInterface

Provides an interface defining a menu entity.

Hierarchy

Expanded class hierarchy of MenuInterface

All classes that implement MenuInterface

10 files declare their use of MenuInterface
LinksetController.php in core/modules/system/src/Controller/LinksetController.php
Menu.php in core/modules/system/src/Entity/Menu.php
MenuBlockTest.php in core/modules/menu_ui/tests/src/Kernel/MenuBlockTest.php
MenuController.php in core/modules/menu_link_content/src/Controller/MenuController.php
MenuController.php in core/modules/menu_ui/src/Controller/MenuController.php

... See full list

File

core/modules/system/src/MenuInterface.php, line 10

Namespace

Drupal\system
View source
interface MenuInterface extends ConfigEntityInterface {
  
  /**
   * Returns the description of the menu.
   *
   * @return string
   *   Description of the menu.
   */
  public function getDescription();
  
  /**
   * Determines if this menu is locked.
   *
   * @return bool
   *   TRUE if the menu is locked, FALSE otherwise.
   */
  public function isLocked();

}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.