You are here

public static function ConfigurableLanguageManager::rebuildServices in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 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 107
Contains \Drupal\language\ConfigurableLanguageManager.

Class

ConfigurableLanguageManager
Overrides default LanguageManager to provide configured languages.

Namespace

Drupal\language

Code

public static function rebuildServices() {
  \Drupal::service('kernel')
    ->invalidateContainer();
}