public function ConfigurableLanguage::setWeight in Drupal 10
Same name and namespace in other branches
- 8 core/modules/language/src/Entity/ConfigurableLanguage.php \Drupal\language\Entity\ConfigurableLanguage::setWeight()
- 9 core/modules/language/src/Entity/ConfigurableLanguage.php \Drupal\language\Entity\ConfigurableLanguage::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
Overrides ConfigurableLanguageInterface::setWeight
File
- core/
modules/ language/ src/ Entity/ ConfigurableLanguage.php, line 257
Class
- ConfigurableLanguage
- Defines the ConfigurableLanguage entity.
Namespace
Drupal\language\EntityCode
public function setWeight($weight) {
$this->weight = $weight;
return $this;
}