function ConfigurableLanguageManager::__construct
Same name in other branches
- 9 core/modules/language/src/ConfigurableLanguageManager.php \Drupal\language\ConfigurableLanguageManager::__construct()
- 8.9.x core/modules/language/src/ConfigurableLanguageManager.php \Drupal\language\ConfigurableLanguageManager::__construct()
- 10 core/modules/language/src/ConfigurableLanguageManager.php \Drupal\language\ConfigurableLanguageManager::__construct()
Constructs a new ConfigurableLanguageManager object.
Parameters
\Drupal\Core\Language\LanguageDefault $default_language: The default language service.
\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The configuration factory service.
\Drupal\Core\Extension\ModuleHandlerInterface $module_handler: The module handler service.
\Drupal\language\Config\LanguageConfigFactoryOverrideInterface $config_override: The language configuration override service.
\Symfony\Component\HttpFoundation\RequestStack $request_stack: The request stack object.
Overrides LanguageManager::__construct
File
-
core/
modules/ language/ src/ ConfigurableLanguageManager.php, line 120
Class
- ConfigurableLanguageManager
- Overrides default LanguageManager to provide configured languages.
Namespace
Drupal\languageCode
public function __construct(LanguageDefault $default_language, ConfigFactoryInterface $config_factory, ModuleHandlerInterface $module_handler, LanguageConfigFactoryOverrideInterface $config_override, RequestStack $request_stack) {
$this->defaultLanguage = $default_language;
$this->configFactory = $config_factory;
$this->moduleHandler = $module_handler;
$this->configFactoryOverride = $config_override;
$this->requestStack = $request_stack;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.