You are here

public function ContentLanguageSettings::isDefaultConfiguration in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 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 165
Contains \Drupal\language\Entity\ContentLanguageSettings.

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