function CurrentLanguageContext::__construct
Same name in other branches
- 8.9.x core/lib/Drupal/Core/Language/ContextProvider/CurrentLanguageContext.php \Drupal\Core\Language\ContextProvider\CurrentLanguageContext::__construct()
- 10 core/lib/Drupal/Core/Language/ContextProvider/CurrentLanguageContext.php \Drupal\Core\Language\ContextProvider\CurrentLanguageContext::__construct()
- 11.x core/lib/Drupal/Core/Language/ContextProvider/CurrentLanguageContext.php \Drupal\Core\Language\ContextProvider\CurrentLanguageContext::__construct()
Constructs a new CurrentLanguageContext.
Parameters
\Drupal\Core\Language\LanguageManagerInterface $language_manager: The language manager.
File
-
core/
lib/ Drupal/ Core/ Language/ ContextProvider/ CurrentLanguageContext.php, line 32
Class
- CurrentLanguageContext
- Sets the current language as a context.
Namespace
Drupal\Core\Language\ContextProviderCode
public function __construct(LanguageManagerInterface $language_manager) {
$this->languageManager = $language_manager;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.