function MenuTestController::create

Same name in other branches
  1. 9 core/modules/system/tests/modules/menu_test/src/Controller/MenuTestController.php \Drupal\menu_test\Controller\MenuTestController::create()
  2. 10 core/modules/system/tests/modules/menu_test/src/Controller/MenuTestController.php \Drupal\menu_test\Controller\MenuTestController::create()
  3. 11.x core/modules/system/tests/modules/menu_test/src/Controller/MenuTestController.php \Drupal\menu_test\Controller\MenuTestController::create()

Overrides ControllerBase::create

File

core/modules/system/tests/modules/menu_test/src/Controller/MenuTestController.php, line 56

Class

MenuTestController
Controller routines for menu_test routes.

Namespace

Drupal\menu_test\Controller

Code

public static function create(ContainerInterface $container) {
    return new static($container->get('theme.manager'), $container->get('theme.negotiator'), $container->get('current_route_match'));
}

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