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()]; }
Please login to continue.