Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. Drupal.php

function Drupal::languageManager

Returns the language manager service.

Return value

\Drupal\Core\Language\LanguageManagerInterface The language manager.

13 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.
EntityBase::languageManager in core/lib/Drupal/Core/Entity/EntityBase.php
Gets the language manager.
LanguageBlock::getDerivativeDefinitions in core/modules/language/src/Plugin/Derivative/LanguageBlock.php
Gets the definition of all derivatives of a base plugin.
LanguageConfiguration::languageManager in core/modules/language/src/Element/LanguageConfiguration.php
Wraps the language manager.

... See full list

File

core/lib/Drupal.php, line 605

Class

Drupal
Static Service Container wrapper.

Code

public static function languageManager() {
    return static::getContainer()->get('language_manager');
}
RSS feed
Powered by Drupal