ConfigurableLanguage::isDefault

public ConfigurableLanguage::isDefault()

Returns whether this language is the default language.

Return value

bool Whether the language is the default language.

Overrides LanguageInterface::isDefault

File

core/modules/language/src/Entity/ConfigurableLanguage.php, line 95

Class

ConfigurableLanguage
Defines the ConfigurableLanguage entity.

Namespace

Drupal\language\Entity

Code

public function isDefault() {
  return static::getDefaultLangcode() == $this->id();
}
doc_Drupal
2016-10-29 08:55:07
Comments
Leave a Comment

Please login to continue.