function LanguageTestController::create

Same name in other branches
  1. 8.9.x core/modules/language/tests/language_test/src/Controller/LanguageTestController.php \Drupal\language_test\Controller\LanguageTestController::create()
  2. 10 core/modules/language/tests/language_test/src/Controller/LanguageTestController.php \Drupal\language_test\Controller\LanguageTestController::create()
  3. 11.x core/modules/language/tests/language_test/src/Controller/LanguageTestController.php \Drupal\language_test\Controller\LanguageTestController::create()

Overrides ContainerInjectionInterface::create

File

core/modules/language/tests/language_test/src/Controller/LanguageTestController.php, line 51

Class

LanguageTestController
Controller routines for language_test routes.

Namespace

Drupal\language_test\Controller

Code

public static function create(ContainerInterface $container) {
    return new static($container->get('http_kernel'), $container->get('language_manager'));
}

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