Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. ConfigurableLanguageInterface.php

function 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);

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal