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

Gets the language manager.

Return value

\Drupal\Core\Language\LanguageManagerInterface

File

core/lib/Drupal/Core/Entity/Entity.php, line 95

Class

Entity
Defines a base entity class.

Namespace

Drupal\Core\Entity

Code

protected function languageManager() {
  return \Drupal::languageManager();
}