function LanguageInterface::isDefault
Same name in other branches
- 9 core/lib/Drupal/Core/Language/LanguageInterface.php \Drupal\Core\Language\LanguageInterface::isDefault()
- 8.9.x core/lib/Drupal/Core/Language/LanguageInterface.php \Drupal\Core\Language\LanguageInterface::isDefault()
- 10 core/lib/Drupal/Core/Language/LanguageInterface.php \Drupal\Core\Language\LanguageInterface::isDefault()
Returns whether this language is the default language.
Return value
bool Whether the language is the default language.
2 methods override LanguageInterface::isDefault()
- ConfigurableLanguage::isDefault in core/
modules/ language/ src/ Entity/ ConfigurableLanguage.php - Returns whether this language is the default language.
- Language::isDefault in core/
lib/ Drupal/ Core/ Language/ Language.php
File
-
core/
lib/ Drupal/ Core/ Language/ LanguageInterface.php, line 148
Class
- LanguageInterface
- Defines an interface for languages.
Namespace
Drupal\Core\LanguageCode
public function isDefault();
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.