public function CurrentLanguageContext::__construct in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/lib/Drupal/Core/Language/ContextProvider/CurrentLanguageContext.php \Drupal\Core\Language\ContextProvider\CurrentLanguageContext::__construct()
Constructs a new CurrentLanguageContext.
Parameters
\Drupal\Core\Language\LanguageManagerInterface: The language manager.
File
- core/
lib/ Drupal/ Core/ Language/ ContextProvider/ CurrentLanguageContext.php, line 37 - Contains \Drupal\Core\Language\ContextProvider\CurrentLanguageContext.
Class
- CurrentLanguageContext
- Sets the current language as a context.
Namespace
Drupal\Core\Language\ContextProviderCode
public function __construct(LanguageManagerInterface $language_manager) {
$this->languageManager = $language_manager;
}