3 namespace Drupal\taxonomy;
5 use Drupal\Core\Entity\ContentEntityInterface;
6 use Drupal\Core\Entity\EntityChangedInterface;
9 * Provides an interface defining a taxonomy term entity.
11 interface TermInterface extends ContentEntityInterface, EntityChangedInterface {
14 * Gets the term's description.
17 * The term description.
19 public function getDescription();
22 * Sets the term's description.
24 * @param string $description
25 * The term's description.
29 public function setDescription($description);
32 * Gets the text format name for the term's description.
35 * The text format name.
37 public function getFormat();
40 * Sets the text format name for the term's description.
42 * @param string $format
43 * The term's description text format.
47 public function setFormat($format);
50 * Gets the name of the term.
53 * The name of the term.
55 public function getName();
58 * Sets the name of the term.
65 public function setName($name);
68 * Gets the weight of this term.
71 * The weight of the term.
73 public function getWeight();
76 * Gets the weight of this term.
83 public function setWeight($weight);
86 * Get the taxonomy vocabulary id this term belongs to.
89 * The id of the vocabulary.
91 * @deprecated Scheduled for removal before Drupal 9.0.0. Use
92 * TermInterface::bundle() instead.
94 public function getVocabularyId();