Term::getWeight

public Term::getWeight()

Gets the weight of this term.

Return value

int The weight of the term.

Overrides TermInterface::getWeight

File

core/modules/taxonomy/src/Entity/Term.php, line 218

Class

Term
Defines the taxonomy term entity.

Namespace

Drupal\taxonomy\Entity

Code

public function getWeight() {
  return $this->get('weight')->value;
}
doc_Drupal
2016-10-29 09:47:02
Comments
Leave a Comment

Please login to continue.