public static function ConfigurableLanguageManager::rebuildServices in Drupal 9
Same name and namespace in other branches
- 8 core/modules/language/src/ConfigurableLanguageManager.php \Drupal\language\ConfigurableLanguageManager::rebuildServices()
Rebuild the container to register services needed on multilingual sites.
Overrides ConfigurableLanguageManagerInterface::rebuildServices
2 calls to ConfigurableLanguageManager::rebuildServices()
- ConfigSubscriber::onConfigSave in core/
modules/ language/ src/ EventSubscriber/ ConfigSubscriber.php - Causes the container to be rebuilt on the next request.
- ConfigurableLanguage::postDelete in core/
modules/ language/ src/ Entity/ ConfigurableLanguage.php - Acts on deleted entities before the delete hook is invoked.
File
- core/
modules/ language/ src/ ConfigurableLanguageManager.php, line 102
Class
- ConfigurableLanguageManager
- Overrides default LanguageManager to provide configured languages.
Namespace
Drupal\languageCode
public static function rebuildServices() {
\Drupal::service('kernel')
->invalidateContainer();
}