function ContentLanguageSettings::isDefaultConfiguration

Same name in other branches
  1. 8.9.x core/modules/language/src/Entity/ContentLanguageSettings.php \Drupal\language\Entity\ContentLanguageSettings::isDefaultConfiguration()
  2. 10 core/modules/language/src/Entity/ContentLanguageSettings.php \Drupal\language\Entity\ContentLanguageSettings::isDefaultConfiguration()
  3. 11.x core/modules/language/src/Entity/ContentLanguageSettings.php \Drupal\language\Entity\ContentLanguageSettings::isDefaultConfiguration()

Overrides ContentLanguageSettingsInterface::isDefaultConfiguration

File

core/modules/language/src/Entity/ContentLanguageSettings.php, line 176

Class

ContentLanguageSettings
Defines the ContentLanguageSettings entity.

Namespace

Drupal\language\Entity

Code

public function isDefaultConfiguration() {
    return !$this->language_alterable && $this->default_langcode == LanguageInterface::LANGCODE_SITE_DEFAULT;
}

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