function LanguageTestController::__construct

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

Constructs a new LanguageTestController object.

Parameters

\Symfony\Component\HttpKernel\HttpKernelInterface $httpKernel: An HTTP kernel.

\Drupal\Core\Language\LanguageManagerInterface $language_manager: The language manager.

File

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

Class

LanguageTestController
Controller routines for language_test routes.

Namespace

Drupal\language_test\Controller

Code

public function __construct(HttpKernelInterface $httpKernel, LanguageManagerInterface $language_manager) {
    $this->httpKernel = $httpKernel;
    $this->languageManager = $language_manager;
}

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