function MenuController::__construct
Same name in other branches
- 9 core/modules/menu_ui/src/Controller/MenuController.php \Drupal\menu_ui\Controller\MenuController::__construct()
- 10 core/modules/menu_ui/src/Controller/MenuController.php \Drupal\menu_ui\Controller\MenuController::__construct()
- 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 31
Class
- MenuController
- Returns responses for Menu routes.
Namespace
Drupal\menu_ui\ControllerCode
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.