function TermInterface::getWeight

Same name and namespace in other branches
  1. 9 core/modules/taxonomy/src/TermInterface.php \Drupal\taxonomy\TermInterface::getWeight()
  2. 8.9.x core/modules/taxonomy/src/TermInterface.php \Drupal\taxonomy\TermInterface::getWeight()
  3. 10 core/modules/taxonomy/src/TermInterface.php \Drupal\taxonomy\TermInterface::getWeight()

Gets the term weight.

Return value

int The term weight.

1 method overrides TermInterface::getWeight()
Term::getWeight in core/modules/taxonomy/src/Entity/Term.php
Gets the term weight.

File

core/modules/taxonomy/src/TermInterface.php, line 75

Class

TermInterface
Provides an interface defining a taxonomy term entity.

Namespace

Drupal\taxonomy

Code

public function getWeight();

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.