function ConfigSubscriber::__construct
Same name in this branch
- main core/modules/locale/src/EventSubscriber/ConfigSubscriber.php \Drupal\locale\EventSubscriber\ConfigSubscriber::__construct()
Same name and namespace in other branches
- 10 core/modules/language/src/EventSubscriber/ConfigSubscriber.php \Drupal\language\EventSubscriber\ConfigSubscriber::__construct()
- 11.x core/modules/language/src/EventSubscriber/ConfigSubscriber.php \Drupal\language\EventSubscriber\ConfigSubscriber::__construct()
- 9 core/modules/language/src/EventSubscriber/ConfigSubscriber.php \Drupal\language\EventSubscriber\ConfigSubscriber::__construct()
- 8.9.x core/modules/language/src/EventSubscriber/ConfigSubscriber.php \Drupal\language\EventSubscriber\ConfigSubscriber::__construct()
- 11.x core/modules/locale/src/EventSubscriber/ConfigSubscriber.php \Drupal\locale\EventSubscriber\ConfigSubscriber::__construct()
Constructs a new class object.
Parameters
\Drupal\Core\Language\LanguageManagerInterface $languageManager: The language manager.
\Drupal\Core\Language\LanguageDefault $languageDefault: The default language.
\Drupal\Core\Config\ConfigFactoryInterface $configFactory: The configuration factory.
\Drupal\language\LanguageNegotiatorInterface $languageNegotiator: The language negotiator.
File
-
core/
modules/ language/ src/ EventSubscriber/ ConfigSubscriber.php, line 40
Class
- ConfigSubscriber
- Deletes the container if default language has changed.
Namespace
Drupal\language\EventSubscriberCode
public function __construct(protected LanguageManagerInterface $languageManager, protected LanguageDefault $languageDefault, protected ConfigFactoryInterface $configFactory, protected LanguageNegotiatorInterface $languageNegotiator) {
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.