@@ -229,7 +229,8 @@ public function setWeight($weight) {
* {@inheritdoc}
*/
publicfunctiongetVocabularyId(){
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);