Overrides \Drupal\Core\Language\LanguageManager::init().
Overrides LanguageManager::init
File
- drupal/core/modules/language/tests/language_test/lib/Drupal/language_test/LanguageTestManager.php, line 21
- Contains \Drupal\language_test\LanguageTestManager.
Class
- LanguageTestManager
- Defines a LanguageManager service to test URL negotiation.
Namespace
Drupal\language_test
Code
public function init() {
if ($test_domain = \Drupal::state()
->get('language_test.domain')) {
$_SERVER['HTTP_HOST'] = $test_domain;
}
return parent::init();
}