public function Language::getWeight

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

Overrides LanguageInterface::getWeight

File

core/lib/Drupal/Core/Language/Language.php, line 122

Class

Language
An object containing the information for an interface language.

Namespace

Drupal\Core\Language

Code

public function getWeight() {
  return $this->weight;
}

© 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!Language.php/function/Language::getWeight/8.1.x