public function ConfigurableLanguageInterface::setWeight in Drupal 10
Same name and namespace in other branches
- 8 core/modules/language/src/ConfigurableLanguageInterface.php \Drupal\language\ConfigurableLanguageInterface::setWeight()
- 9 core/modules/language/src/ConfigurableLanguageInterface.php \Drupal\language\ConfigurableLanguageInterface::setWeight()
Sets the weight of the language.
Parameters
int $weight: The weight, used to order languages with larger positive weights sinking items toward the bottom of lists.
Return value
$this
1 method overrides ConfigurableLanguageInterface::setWeight()
- ConfigurableLanguage::setWeight in core/
modules/ language/ src/ Entity/ ConfigurableLanguage.php - Sets the weight of the language.
File
- core/
modules/ language/ src/ ConfigurableLanguageInterface.php, line 32
Class
- ConfigurableLanguageInterface
- Provides an interface defining a language entity.
Namespace
Drupal\languageCode
public function setWeight($weight);