function ConfigurableLanguageInterface::setWeight

Same name in other branches
  1. 9 core/modules/language/src/ConfigurableLanguageInterface.php \Drupal\language\ConfigurableLanguageInterface::setWeight()
  2. 8.9.x core/modules/language/src/ConfigurableLanguageInterface.php \Drupal\language\ConfigurableLanguageInterface::setWeight()
  3. 11.x core/modules/language/src/ConfigurableLanguageInterface.php \Drupal\language\ConfigurableLanguageInterface::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

1 method overrides ConfigurableLanguageInterface::setWeight()
ConfigurableLanguage::setWeight in core/modules/language/src/Entity/ConfigurableLanguage.php
Sets the weight of the language.

File

core/modules/language/src/ConfigurableLanguageInterface.php, line 32

Class

ConfigurableLanguageInterface
Provides an interface defining a language entity.

Namespace

Drupal\language

Code

public function setWeight($weight);

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