The entity reference selection "Straw selection" has deprecated reference for Drupal 9.

Line 30.
$bundles = $this->entityManager->getBundleInfo('taxonomy_term');

Line 82.
$all_terms = $this->entityManager->getStorage('taxonomy_term')->loadTree($bundle_name);

CommentFileSizeAuthor
#2 deprecated_reference-3198755-2.patch1.21 KBVanHomero

Comments

VanHomero created an issue. See original summary.

VanHomero’s picture

StatusFileSize
new1.21 KB

here the solution.

ekes’s picture

Status: Active » Reviewed & tested by the community

`DefaultSelection::$entityTypeBundleInfo` and `DefaultSelection::$entityTypeManager` were introduced in 8.7 so it might be wise to increase the minimum version to be clear; for the rest fixes the call to non-existent ::$entityManager in 9.x .

jcnventura’s picture

I'll use the core_version_requirement to require Drupal 8.7.7 or higher.

  • jcnventura authored 12c9291 on 8.x-1.x
    Issue #3198755 by VanHomero, ekes, jcnventura: Deprecated references for...
jcnventura’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

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