function ConfigurableLanguage::setWeight

Attributes

#[ActionMethod(adminLabel: new TranslatableMarkup('Set weight'), pluralize: FALSE)]

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 265

Class

ConfigurableLanguage
Defines the ConfigurableLanguage entity.

Namespace

Drupal\language\Entity

Code

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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.