You are here

public function LanguageManager::isLanguageLocked in Zircon Profile 8

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

Checks whether a language is locked.

Parameters

string $langcode: The language code.

Return value

bool Returns whether the language is locked.

Overrides LanguageManagerInterface::isLanguageLocked

File

core/lib/Drupal/Core/Language/LanguageManager.php, line 207
Contains \Drupal\Core\Language\LanguageManager.

Class

LanguageManager
Class responsible for providing language support on language-unaware sites.

Namespace

Drupal\Core\Language

Code

public function isLanguageLocked($langcode) {
  $language = $this
    ->getLanguage($langcode);
  return $language ? $language
    ->isLocked() : FALSE;
}