ConfigurableLanguageManager::rebuildServices

public static ConfigurableLanguageManager::rebuildServices()

Rebuild the container to register services needed on multilingual sites.

Overrides ConfigurableLanguageManagerInterface::rebuildServices

File

core/modules/language/src/ConfigurableLanguageManager.php, line 102

Class

ConfigurableLanguageManager
Overrides default LanguageManager to provide configured languages.

Namespace

Drupal\language

Code

public static function rebuildServices() {
  \Drupal::service('kernel')->invalidateContainer();
}
doc_Drupal
2016-10-29 08:55:17
Comments
Leave a Comment

Please login to continue.