Term::setDescription

public Term::setDescription($description)

Sets the term's description.

Parameters

string $description: The term's description.

Return value

$this

Overrides TermInterface::setDescription

File

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

Class

Term
Defines the taxonomy term entity.

Namespace

Drupal\taxonomy\Entity

Code

public function setDescription($description) {
  $this->set('description', $description);
  return $this;
}
doc_Drupal
2016-10-29 09:47:03
Comments
Leave a Comment

Please login to continue.