MenuController::__construct

public MenuController::__construct(MenuParentFormSelectorInterface $menu_parent_form) Creates a new MenuController object. Parameters \Drupal\Core\Menu\MenuParentFormSelectorInterface $menu_parent_form: The menu parent form service. File core/modules/menu_ui/src/Controller/MenuController.php, line 31 Class MenuController Returns responses for Menu routes. Namespace Drupal\menu_ui\Controller Code public function __construct(MenuParentFormSelectorInterface $menu_parent_form) { $this-&

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::getHtmlT

MenuController::getParentOptions

public MenuController::getParentOptions(Request $request) Gets all the available menus and menu items as a JavaScript array. Parameters \Symfony\Component\HttpFoundation\Request $request: The request of the page. Return value \Symfony\Component\HttpFoundation\JsonResponse The available menu and menu items. File core/modules/menu_ui/src/Controller/MenuController.php, line 51 Class MenuController Returns responses for Menu routes. Namespace Drupal\menu_ui\Controller Code public functio

MenuController::create

public static MenuController::create(ContainerInterface $container) Instantiates a new instance of this class. This is a factory method that returns a new instance of this class. The factory should pass any needed dependencies into the constructor of this class, but not the container itself. Every call to this method must return a new instance of this class; that is, it may not implement a singleton. Parameters \Symfony\Component\DependencyInjection\ContainerInterface $container: The service c

MenuController::addLink

public MenuController::addLink(MenuInterface $menu) Provides the menu link creation form. Parameters \Drupal\system\MenuInterface $menu: An entity representing a custom menu. Return value array Returns the menu link creation form. File core/modules/menu_link_content/src/Controller/MenuController.php, line 22 Class MenuController Defines a route controller for a form for menu link content entity creation. Namespace Drupal\menu_link_content\Controller Code public function addLink(MenuI

MenuController::$menuParentSelector

The menu parent form service. Type: \Drupal\Core\Menu\MenuParentFormSelectorInterface File core/modules/menu_ui/src/Controller/MenuController.php, line 23 Class MenuController Returns responses for Menu routes. Namespace Drupal\menu_ui\Controller Code protected $menuParentSelector;

MenuController

Defines a route controller for a form for menu link content entity creation. Hierarchy class \Drupal\Core\Controller\ControllerBase implements ContainerInjectionInterface uses LoggerChannelTrait, LinkGeneratorTrait, RedirectDestinationTrait, UrlGeneratorTrait, StringTranslationTraitclass \Drupal\menu_link_content\Controller\MenuController File core/modules/menu_link_content/src/Controller/MenuController.php, line 11 Namespace Drupal\menu_link_content\Controller Members Name Modifie

MenuController

Returns responses for Menu routes. Hierarchy class \Drupal\Core\Controller\ControllerBase implements ContainerInjectionInterface uses LoggerChannelTrait, LinkGeneratorTrait, RedirectDestinationTrait, UrlGeneratorTrait, StringTranslationTraitclass \Drupal\menu_ui\Controller\MenuController File core/modules/menu_ui/src/Controller/MenuController.php, line 16 Namespace Drupal\menu_ui\Controller Members Name Modifiers Type Description ControllerBase::$configFactory protected p

MenuActiveTrailsCacheContext::getLabel

public static MenuActiveTrailsCacheContext::getLabel() Returns the label of the cache context. Return value string The label of the cache context. Overrides CalculatedCacheContextInterface::getLabel See also Cache File core/lib/Drupal/Core/Cache/Context/MenuActiveTrailsCacheContext.php, line 22 Class MenuActiveTrailsCacheContext Defines the MenuActiveTrailsCacheContext service. Namespace Drupal\Core\Cache\Context Code public static function getLabel() { return t("Active menu trail"

MenuActiveTrailsCacheContext::getContext

public MenuActiveTrailsCacheContext::getContext($menu_name = NULL) Returns the string representation of the cache context. A cache context service's name is used as a token (placeholder) cache key, and is then replaced with the string returned by this method. Parameters string|null $parameter: The parameter, or NULL to indicate all possible parameter values. Return value string The string representation of the cache context. When $parameter is NULL, a value representing all possible parameter