function 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 109
Class
- ConfigurableLanguage
- Defines the ConfigurableLanguage entity.
Namespace
Drupal\language\EntityCode
public function isDefault() {
return static::getDefaultLangcode() == $this->id();
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.