Term::getDescription

public Term::getDescription()

Gets the term's description.

Return value

string The term description.

Overrides TermInterface::getDescription

File

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

Class

Term
Defines the taxonomy term entity.

Namespace

Drupal\taxonomy\Entity

Code

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

Please login to continue.