function LanguageManager::isLanguageLocked

Same name in other branches
  1. 8.9.x core/lib/Drupal/Core/Language/LanguageManager.php \Drupal\Core\Language\LanguageManager::isLanguageLocked()
  2. 10 core/lib/Drupal/Core/Language/LanguageManager.php \Drupal\Core\Language\LanguageManager::isLanguageLocked()
  3. 11.x core/lib/Drupal/Core/Language/LanguageManager.php \Drupal\Core\Language\LanguageManager::isLanguageLocked()

Overrides LanguageManagerInterface::isLanguageLocked

File

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

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;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.