You are here

public function ContentLanguageSettings::isDefaultConfiguration in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/language/src/Entity/ContentLanguageSettings.php \Drupal\language\Entity\ContentLanguageSettings::isDefaultConfiguration()

Checks if this config object contains the default values in every property.

Return value

bool True if all the properties contain the default values. False otherwise.

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