Drupal version

Core 9.x

Drupal Rector version

0.11.3

Problem / Motivation

Call to undefined method Drupal\taxonomy\Entity\Term::getVocabularyId() in Drupal\unique_entity_title\Plugin\Validation\Constraint\UniqueEntityTitleValidator->validate()

When using Drupal 9, getVocabularyId() has been removed from Drupal 9.

Proposed resolution

Replace getVocabularyId() with bundle().

Comments

technoveltyco created an issue.

cesarmiquel’s picture

Is somebody working on this? I hit this issue so I'd like the rule to be added. I volunteer to try to do it if someone can point me to a similar rule I can use as reference.