ControllerBase::languageManager

protected ControllerBase::languageManager()

Returns the language manager service.

Return value

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

File

core/lib/Drupal/Core/Controller/ControllerBase.php, line 275

Class

ControllerBase
Utility base class for thin controllers.

Namespace

Drupal\Core\Controller

Code

protected function languageManager() {
  if (!$this->languageManager) {
    $this->languageManager = $this->container()->get('language_manager');
  }
  return $this->languageManager;
}
doc_Drupal
2016-10-29 08:58:57
Comments
Leave a Comment

Please login to continue.