function TermInterface::setWeight

Same name and namespace in other branches
  1. 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

File

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

Class

TermInterface
Provides an interface defining a taxonomy term entity.

Namespace

Drupal\taxonomy

Code

public function setWeight($weight);

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