interface TermInterface in Drupal 10
Same name and namespace in other branches
- 8 core/modules/taxonomy/src/TermInterface.php \Drupal\taxonomy\TermInterface
- 9 core/modules/taxonomy/src/TermInterface.php \Drupal\taxonomy\TermInterface
Provides an interface defining a taxonomy term entity.
Hierarchy
- interface \Drupal\Core\Entity\ContentEntityInterface extends \Drupal\Core\Entity\Traversable; interface \Drupal\Core\Entity\EntityChangedInterface; interface \Drupal\Core\Entity\EntityPublishedInterface; interface \Drupal\Core\Entity\RevisionLogInterface
- interface \Drupal\taxonomy\TermInterface
Expanded class hierarchy of TermInterface
All classes that implement TermInterface
14 files declare their use of TermInterface
- DeleteForm.php in core/
modules/ forum/ src/ Form/ DeleteForm.php - EntityReferenceItemTest.php in core/
modules/ field/ tests/ src/ Kernel/ EntityReference/ EntityReferenceItemTest.php - ForumController.php in core/
modules/ forum/ src/ Controller/ ForumController.php - MigrateTaxonomyTermTest.php in core/
modules/ taxonomy/ tests/ src/ Kernel/ Migrate/ d7/ MigrateTaxonomyTermTest.php - MigrateTaxonomyTermTranslationTest.php in core/
modules/ content_translation/ tests/ src/ Kernel/ Migrate/ d6/ MigrateTaxonomyTermTranslationTest.php
File
- core/
modules/ taxonomy/ src/ TermInterface.php, line 13
Namespace
Drupal\taxonomyView source
interface TermInterface extends ContentEntityInterface, EntityChangedInterface, EntityPublishedInterface, RevisionLogInterface {
/**
* Gets the term description.
*
* @return string
* The term description.
*/
public function getDescription();
/**
* Sets the term description.
*
* @param string $description
* The term description.
*
* @return $this
*/
public function setDescription($description);
/**
* Gets the text format name for the term description.
*
* @return string
* The text format name.
*/
public function getFormat();
/**
* Sets the text format name for the term description.
*
* @param string $format
* The text format name.
*
* @return $this
*/
public function setFormat($format);
/**
* Gets the term name.
*
* @return string
* The term name.
*/
public function getName();
/**
* Sets the term name.
*
* @param string $name
* The term name.
*
* @return $this
*/
public function setName($name);
/**
* Gets the term weight.
*
* @return int
* The term weight.
*/
public function getWeight();
/**
* Sets the term weight.
*
* @param int $weight
* The term weight.
*
* @return $this
*/
public function setWeight($weight);
}