You are here

public function LanguageInterface::isDefault in Drupal 10

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/Language/LanguageInterface.php \Drupal\Core\Language\LanguageInterface::isDefault()
  2. 9 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.

1 method overrides LanguageInterface::isDefault()
ConfigurableLanguage::isDefault in core/modules/language/src/Entity/ConfigurableLanguage.php
Returns whether this language is the default language.

File

core/lib/Drupal/Core/Language/LanguageInterface.php, line 148

Class

LanguageInterface
Defines an interface for languages.

Namespace

Drupal\Core\Language

Code

public function isDefault();