You are here

public function TermInterface::setWeight in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/taxonomy/src/TermInterface.php \Drupal\taxonomy\TermInterface::setWeight()

Gets the weight of this term.

Parameters

int $weight: The term's weight.

Return value

$this

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

File

core/modules/taxonomy/src/TermInterface.php, line 88
Contains \Drupal\taxonomy\TermInterface.

Class

TermInterface
Provides an interface defining a taxonomy term entity.

Namespace

Drupal\taxonomy

Code

public function setWeight($weight);