public ConfigurableLanguage::setWeight($weight)
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 229
Class
- ConfigurableLanguage
- Defines the ConfigurableLanguage entity.
Namespace
Drupal\language\Entity
Code
public function setWeight($weight) { $this->weight = $weight; return $this; }
Please login to continue.