function MenuController::create

Same name in other branches
  1. 8.9.x core/modules/menu_ui/src/Controller/MenuController.php \Drupal\menu_ui\Controller\MenuController::create()

Overrides ControllerBase::create

File

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

Class

MenuController
Returns responses for Menu routes.

Namespace

Drupal\menu_ui\Controller

Code

public static function create(ContainerInterface $container) {
    return new static($container->get('menu.parent_form_selector'));
}

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