W3cubDocs

/Drupal 8

public function LanguageInterface::getWeight

public 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.

File

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

Class

LanguageInterface
Defines a language.

Namespace

Drupal\Core\Language

Code

public function getWeight();

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Language!LanguageInterface.php/function/LanguageInterface::getWeight/8.1.x