You are here

public function ConfigurableLanguage::setWeight in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/language/src/Entity/ConfigurableLanguage.php \Drupal\language\Entity\ConfigurableLanguage::setWeight()
  2. 10 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\Entity

Code

public function setWeight($weight) {
  $this->weight = $weight;
  return $this;
}