function TermInterface::getVocabularyId

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\taxonomy

Code

public function getVocabularyId();

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.