You are here

public function LanguageManagerInterface::getLanguage in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/lib/Drupal/Core/Language/LanguageManagerInterface.php \Drupal\Core\Language\LanguageManagerInterface::getLanguage()

Returns a language object from the given language code.

Parameters

string $langcode: The language code.

Return value

\Drupal\core\Language\LanguageInterface|null A fully-populated language object or NULL.

1 method overrides LanguageManagerInterface::getLanguage()
LanguageManager::getLanguage in core/lib/Drupal/Core/Language/LanguageManager.php
Returns a language object from the given language code.

File

core/lib/Drupal/Core/Language/LanguageManagerInterface.php, line 110
Contains \Drupal\Core\Language\LanguageManagerInterface.

Class

LanguageManagerInterface
Common interface for the language manager service.

Namespace

Drupal\Core\Language

Code

public function getLanguage($langcode);