public static function Drupal::languageManager in Zircon Profile 8.0
Same name and namespace in other branches
- 8 core/lib/Drupal.php \Drupal::languageManager()
Returns the language manager service.
Return value
\Drupal\Core\Language\LanguageManagerInterface The language manager.
12 calls to Drupal::languageManager()
- ConfigurableLanguage::postDelete in core/
modules/ language/ src/ Entity/ ConfigurableLanguage.php - Acts on deleted entities before the delete hook is invoked.
- ConfigurableLanguage::postSave in core/
modules/ language/ src/ Entity/ ConfigurableLanguage.php - Acts on a saved entity before the insert or update hook is invoked.
- DrupalTest::testLanguageManager in core/
tests/ Drupal/ Tests/ Core/ DrupalTest.php - Tests the languageManager() method.
- Entity::languageManager in core/
lib/ Drupal/ Core/ Entity/ Entity.php - Gets the language manager.
- InstallerTranslationMultipleLanguageTest::testTranslationsLoaded in core/
modules/ system/ src/ Tests/ Installer/ InstallerTranslationMultipleLanguageTest.php - Tests that translations ended up at the expected places.
File
- core/
lib/ Drupal.php, line 594 - Contains \Drupal.
Class
- Drupal
- Static Service Container wrapper.
Code
public static function languageManager() {
return static::getContainer()
->get('language_manager');
}