LanguageManager::isLanguageLocked

public LanguageManager::isLanguageLocked($langcode)

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 202

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);
}
doc_Drupal
2016-10-29 09:22:39
Comments
Leave a Comment

Please login to continue.