You are here

public function CustomLanguage::setWeight in Custom Language field 8

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

src/Entity/CustomLanguage.php, line 136

Class

CustomLanguage
Defines the CustomLanguage entity.

Namespace

Drupal\languagefield\Entity

Code

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