function TermInterface::setWeight
Same name in other branches
- 9 core/modules/taxonomy/src/TermInterface.php \Drupal\taxonomy\TermInterface::setWeight()
- 10 core/modules/taxonomy/src/TermInterface.php \Drupal\taxonomy\TermInterface::setWeight()
- 11.x core/modules/taxonomy/src/TermInterface.php \Drupal\taxonomy\TermInterface::setWeight()
Sets the term weight.
Parameters
int $weight: The term weight.
Return value
$this
1 method overrides TermInterface::setWeight()
- Term::setWeight in core/
modules/ taxonomy/ src/ Entity/ Term.php - Sets the term weight.
File
-
core/
modules/ taxonomy/ src/ TermInterface.php, line 85
Class
- TermInterface
- Provides an interface defining a taxonomy term entity.
Namespace
Drupal\taxonomyCode
public function setWeight($weight);
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.