ConfigurableLanguage::setWeight

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;
}
doc_Drupal
2016-10-29 08:55:08
Comments
Leave a Comment

Please login to continue.