public Term::getVocabularyId()
Get the taxonomy vocabulary id this term belongs to.
Return value
int The id of the vocabulary.
Overrides TermInterface::getVocabularyId
File
- core/modules/taxonomy/src/Entity/Term.php, line 233
Class
- Term
- Defines the taxonomy term entity.
Namespace
Drupal\taxonomy\Entity
Code
1 2 3 | public function getVocabularyId() { return $this ->get( 'vid' )->target_id; } |
Please login to continue.