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

Breadcrumb

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

function LanguageInterface::getWeight

Gets the weight of the language.

Return value

int The weight, used to order languages with larger positive weights sinking items toward the bottom of lists.

2 methods override LanguageInterface::getWeight()
ConfigurableLanguage::getWeight in core/modules/language/src/Entity/ConfigurableLanguage.php
Gets the weight of the language.
Language::getWeight in core/lib/Drupal/Core/Language/Language.php
Gets the weight of the language.

File

core/lib/Drupal/Core/Language/LanguageInterface.php, line 140

Class

LanguageInterface
Defines an interface for languages.

Namespace

Drupal\Core\Language

Code

public function getWeight();
RSS feed
Powered by Drupal