function LanguageInterface::getWeight
Same name in other branches
- 8.9.x core/lib/Drupal/Core/Language/LanguageInterface.php \Drupal\Core\Language\LanguageInterface::getWeight()
- 10 core/lib/Drupal/Core/Language/LanguageInterface.php \Drupal\Core\Language\LanguageInterface::getWeight()
- 11.x core/lib/Drupal/Core/Language/LanguageInterface.php \Drupal\Core\Language\LanguageInterface::getWeight()
Gets the weight of the language.
Return value
int The weight, used to order languages with larger positive weights sinking items toward the bottom of lists.
2 methods override LanguageInterface::getWeight()
- ConfigurableLanguage::getWeight in core/
modules/ language/ src/ Entity/ ConfigurableLanguage.php - Language::getWeight in core/
lib/ Drupal/ Core/ Language/ Language.php - Gets the weight of the language.
File
-
core/
lib/ Drupal/ Core/ Language/ LanguageInterface.php, line 140
Class
- LanguageInterface
- Defines an interface for languages.
Namespace
Drupal\Core\LanguageCode
public function getWeight();
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.