* "canonical" = "/taxonomy/term/{taxonomy_term}",
* "delete-form" = "/taxonomy/term/{taxonomy_term}/delete",
* "edit-form" = "/taxonomy/term/{taxonomy_term}/edit",
+ * "create" = "/taxonomy/term",
* },
* permission_granularity = "bundle"
* )
* {@inheritdoc}
*/
public function getVocabularyId() {
- return $this->get('vid')->target_id;
+ @trigger_error('The ' . __METHOD__ . ' method is deprecated since version 8.4.0 and will be removed before 9.0.0. Use ' . __CLASS__ . '::bundle() instead to get the vocabulary ID.', E_USER_DEPRECATED);
+ return $this->bundle();
}
/**