You are here

public function ConfigurableLanguageInterface::setWeight in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/language/src/ConfigurableLanguageInterface.php \Drupal\language\ConfigurableLanguageInterface::setWeight()
  2. 9 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);