8.5.x Drupal.php Drupal::languageManager()
8.0.x Drupal.php Drupal::languageManager()
8.1.x Drupal.php Drupal::languageManager()
8.2.x Drupal.php Drupal::languageManager()
8.3.x Drupal.php Drupal::languageManager()
8.4.x Drupal.php Drupal::languageManager()
8.6.x Drupal.php Drupal::languageManager()

Returns the language manager service.

Return value

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

File

core/lib/Drupal.php, line 600
Contains \Drupal.

Class

Drupal
Static Service Container wrapper.

Code

public static function languageManager() {
  return static::getContainer()
    ->get('language_manager');
}