Problem/Motivation

The Drupal\taxonomy\Entity\Term::getVocabularyId method is deprecated since version 8.4.0 and will be removed before 9.0.0.

Proposed resolution

Use Drupal\taxonomy\Entity\Term::bundle() instead to get the vocabulary ID.

Remaining tasks

User interface changes

API changes

Data model changes

CommentFileSizeAuthor
#2 2969972.patch2.65 KBmihai11
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

mihai11 created an issue. See original summary.

mihai11’s picture

Assigned: mihai11 » Unassigned
Status: Active » Needs review
FileSize
2.65 KB
amateescu’s picture

Status: Needs review » Reviewed & tested by the community

Nice and simple :)

alexpott’s picture

Status: Reviewed & tested by the community » Fixed

Committed and pushed 21d4930304 to 8.6.x and 7dac69b923 to 8.5.x. Thanks!

As this is test only backported 8.5.x

  • alexpott committed 21d4930 on 8.6.x
    Issue #2969972 by mihai11: Fix "The Drupal\taxonomy\Entity\Term::...

  • alexpott committed 7dac69b on 8.5.x
    Issue #2969972 by mihai11: Fix "The Drupal\taxonomy\Entity\Term::...
amateescu’s picture

Issue tags: -DCTransylvania2018

Cleaning up tags.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.