public function LanguageManagerInterface::getLanguage in Drupal 8
Same name and namespace in other branches
- 9 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 105
Class
- LanguageManagerInterface
- Common interface for the language manager service.
Namespace
Drupal\Core\LanguageCode
public function getLanguage($langcode);