You are here

public function LanguageTestController::__construct in Drupal 9

Same name and namespace in other branches
  1. 8 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;
}