Chris@0
|
1 <?php
|
Chris@0
|
2
|
Chris@0
|
3 namespace Drupal\taxonomy;
|
Chris@0
|
4
|
Chris@0
|
5 use Drupal\Core\Entity\ContentEntityInterface;
|
Chris@0
|
6 use Drupal\Core\Entity\EntityChangedInterface;
|
Chris@17
|
7 use Drupal\Core\Entity\EntityPublishedInterface;
|
Chris@18
|
8 use Drupal\Core\Entity\RevisionLogInterface;
|
Chris@0
|
9
|
Chris@0
|
10 /**
|
Chris@0
|
11 * Provides an interface defining a taxonomy term entity.
|
Chris@0
|
12 */
|
Chris@18
|
13 interface TermInterface extends ContentEntityInterface, EntityChangedInterface, EntityPublishedInterface, RevisionLogInterface {
|
Chris@0
|
14
|
Chris@0
|
15 /**
|
Chris@18
|
16 * Gets the term description.
|
Chris@0
|
17 *
|
Chris@0
|
18 * @return string
|
Chris@0
|
19 * The term description.
|
Chris@0
|
20 */
|
Chris@0
|
21 public function getDescription();
|
Chris@0
|
22
|
Chris@0
|
23 /**
|
Chris@18
|
24 * Sets the term description.
|
Chris@0
|
25 *
|
Chris@0
|
26 * @param string $description
|
Chris@18
|
27 * The term description.
|
Chris@0
|
28 *
|
Chris@0
|
29 * @return $this
|
Chris@0
|
30 */
|
Chris@0
|
31 public function setDescription($description);
|
Chris@0
|
32
|
Chris@0
|
33 /**
|
Chris@18
|
34 * Gets the text format name for the term description.
|
Chris@0
|
35 *
|
Chris@0
|
36 * @return string
|
Chris@0
|
37 * The text format name.
|
Chris@0
|
38 */
|
Chris@0
|
39 public function getFormat();
|
Chris@0
|
40
|
Chris@0
|
41 /**
|
Chris@18
|
42 * Sets the text format name for the term description.
|
Chris@0
|
43 *
|
Chris@0
|
44 * @param string $format
|
Chris@18
|
45 * The text format name.
|
Chris@0
|
46 *
|
Chris@0
|
47 * @return $this
|
Chris@0
|
48 */
|
Chris@0
|
49 public function setFormat($format);
|
Chris@0
|
50
|
Chris@0
|
51 /**
|
Chris@18
|
52 * Gets the term name.
|
Chris@0
|
53 *
|
Chris@0
|
54 * @return string
|
Chris@18
|
55 * The term name.
|
Chris@0
|
56 */
|
Chris@0
|
57 public function getName();
|
Chris@0
|
58
|
Chris@0
|
59 /**
|
Chris@18
|
60 * Sets the term name.
|
Chris@0
|
61 *
|
Chris@16
|
62 * @param string $name
|
Chris@18
|
63 * The term name.
|
Chris@0
|
64 *
|
Chris@0
|
65 * @return $this
|
Chris@0
|
66 */
|
Chris@0
|
67 public function setName($name);
|
Chris@0
|
68
|
Chris@0
|
69 /**
|
Chris@18
|
70 * Gets the term weight.
|
Chris@0
|
71 *
|
Chris@0
|
72 * @return int
|
Chris@18
|
73 * The term weight.
|
Chris@0
|
74 */
|
Chris@0
|
75 public function getWeight();
|
Chris@0
|
76
|
Chris@0
|
77 /**
|
Chris@18
|
78 * Sets the term weight.
|
Chris@0
|
79 *
|
Chris@0
|
80 * @param int $weight
|
Chris@18
|
81 * The term weight.
|
Chris@0
|
82 *
|
Chris@0
|
83 * @return $this
|
Chris@0
|
84 */
|
Chris@0
|
85 public function setWeight($weight);
|
Chris@0
|
86
|
Chris@0
|
87 /**
|
Chris@18
|
88 * Gets the ID of the vocabulary that owns the term.
|
Chris@0
|
89 *
|
Chris@0
|
90 * @return string
|
Chris@18
|
91 * The vocabulary ID.
|
Chris@0
|
92 *
|
Chris@0
|
93 * @deprecated Scheduled for removal before Drupal 9.0.0. Use
|
Chris@0
|
94 * TermInterface::bundle() instead.
|
Chris@0
|
95 */
|
Chris@0
|
96 public function getVocabularyId();
|
Chris@0
|
97
|
Chris@0
|
98 }
|