MenuController::menuTitle

public MenuController::menuTitle(MenuInterface $menu)

Route title callback.

Parameters

\Drupal\system\MenuInterface $menu: The menu entity.

Return value

array The menu label as a render array.

File

core/modules/menu_ui/src/Controller/MenuController.php, line 74

Class

MenuController
Returns responses for Menu routes.

Namespace

Drupal\menu_ui\Controller

Code

public function menuTitle(MenuInterface $menu) {
  return ['#markup' => $menu->label(), '#allowed_tags' => Xss::getHtmlTagList()];
}
doc_Drupal
2016-10-29 09:26:09
Comments
Leave a Comment

Please login to continue.