function ConfigurableLanguageManager::rebuildServices
Same name in other branches
- 9 core/modules/language/src/ConfigurableLanguageManager.php \Drupal\language\ConfigurableLanguageManager::rebuildServices()
- 8.9.x core/modules/language/src/ConfigurableLanguageManager.php \Drupal\language\ConfigurableLanguageManager::rebuildServices()
- 11.x core/modules/language/src/ConfigurableLanguageManager.php \Drupal\language\ConfigurableLanguageManager::rebuildServices()
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();
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.