You are here

public function ConfigurableLanguage::setWeight in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 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 234
Contains \Drupal\language\Entity\ConfigurableLanguage.

Class

ConfigurableLanguage
Defines the ConfigurableLanguage entity.

Namespace

Drupal\language\Entity

Code

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