ContentLanguageSettings::isDefaultConfiguration

public 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 161

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);
}
doc_Drupal
2016-10-29 08:57:50
Comments
Leave a Comment

Please login to continue.