X-Git-Url: http://aleph1.co.uk/gitweb/?a=blobdiff_plain;f=web%2Fcore%2Fmodules%2Ftaxonomy%2Fsrc%2FTermInterface.php;h=2dc26fb65dc4495f2620dae0911c2a06a878e112;hb=5b8bb166bfa98770daef9de5c127fc2e6ef02340;hp=0a582d3d60d1164c5e5bfedd4a9a8874d23a05be;hpb=a2bd1bf0c2c1f1a17d188f4dc0726a45494cefae;p=yaffs-website diff --git a/web/core/modules/taxonomy/src/TermInterface.php b/web/core/modules/taxonomy/src/TermInterface.php index 0a582d3d6..2dc26fb65 100644 --- a/web/core/modules/taxonomy/src/TermInterface.php +++ b/web/core/modules/taxonomy/src/TermInterface.php @@ -4,11 +4,12 @@ namespace Drupal\taxonomy; use Drupal\Core\Entity\ContentEntityInterface; use Drupal\Core\Entity\EntityChangedInterface; +use Drupal\Core\Entity\EntityPublishedInterface; /** * Provides an interface defining a taxonomy term entity. */ -interface TermInterface extends ContentEntityInterface, EntityChangedInterface { +interface TermInterface extends ContentEntityInterface, EntityChangedInterface, EntityPublishedInterface { /** * Gets the term's description. @@ -57,7 +58,7 @@ interface TermInterface extends ContentEntityInterface, EntityChangedInterface { /** * Sets the name of the term. * - * @param int $name + * @param string $name * The term's name. * * @return $this @@ -87,6 +88,9 @@ interface TermInterface extends ContentEntityInterface, EntityChangedInterface { * * @return string * The id of the vocabulary. + * + * @deprecated Scheduled for removal before Drupal 9.0.0. Use + * TermInterface::bundle() instead. */ public function getVocabularyId();