function MenuController::__construct

Same name in other branches
  1. 9 core/modules/menu_ui/src/Controller/MenuController.php \Drupal\menu_ui\Controller\MenuController::__construct()
  2. 8.9.x core/modules/menu_ui/src/Controller/MenuController.php \Drupal\menu_ui\Controller\MenuController::__construct()
  3. 11.x core/modules/menu_ui/src/Controller/MenuController.php \Drupal\menu_ui\Controller\MenuController::__construct()

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 30

Class

MenuController
Returns responses for Menu routes.

Namespace

Drupal\menu_ui\Controller

Code

public function __construct(MenuParentFormSelectorInterface $menu_parent_form) {
    $this->menuParentSelector = $menu_parent_form;
}

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