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

Breadcrumb

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

function EntityBase::languageManager

Gets the language manager.

Return value

\Drupal\Core\Language\LanguageManagerInterface

File

core/lib/Drupal/Core/Entity/EntityBase.php, line 90

Class

EntityBase
Defines a base entity class.

Namespace

Drupal\Core\Entity

Code

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

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal