function Drupal::languageManager
Same name in other branches
- 9 core/lib/Drupal.php \Drupal::languageManager()
- 8.9.x core/lib/Drupal.php \Drupal::languageManager()
- 11.x core/lib/Drupal.php \Drupal::languageManager()
Returns the language manager service.
Return value
\Drupal\Core\Language\LanguageManagerInterface The language manager.
22 calls to Drupal::languageManager()
- AjaxResponseAttachmentsProcessor::__construct in core/
lib/ Drupal/ Core/ Ajax/ AjaxResponseAttachmentsProcessor.php - Constructs an AjaxResponseAttachmentsProcessor object.
- 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.
- EntityBase::languageManager in core/
lib/ Drupal/ Core/ Entity/ EntityBase.php - Gets the language manager.
File
-
core/
lib/ Drupal.php, line 605
Class
- Drupal
- Static Service Container wrapper.
Code
public static function languageManager() {
return static::getContainer()->get('language_manager');
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.