public function TermInterface::getVocabularyId in Drupal 8
Gets the ID of the vocabulary that owns the term.
Return value
string The vocabulary ID.
Deprecated
in drupal:8.?.? and is removed from drupal:9.0.0. Use TermInterface::bundle() instead.
1 method overrides TermInterface::getVocabularyId()
- Term::getVocabularyId in core/
modules/ taxonomy/ src/ Entity/ Term.php - Gets the ID of the vocabulary that owns the term.
File
- core/
modules/ taxonomy/ src/ TermInterface.php, line 96
Class
- TermInterface
- Provides an interface defining a taxonomy term entity.
Namespace
Drupal\taxonomyCode
public function getVocabularyId();