Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Found two more deprecations today, the usage of entityManager in the EntityBundle views field:
2x: EntityManagerInterface::getBundleInfo() is deprecated in drupal:8.0.0 and will be removed before drupal:9.0.0. Use \Drupal\Core\Entity\EntityTypeBundleInfoInterface::getBundleInfo() instead. See https://www.drupal.org/node/2549139.
2x in ProductAdminTest::testMixedMode from Drupal\Tests\commerce_product\Functional
1x: The property entityManager (entity.manager service) is deprecated in Drupal\commerce\Plugin\views\field\EntityBundle and will be removed before Drupal 9.0.0.
1x in ProductAdminTest::testMixedMode from Drupal\Tests\commerce_product\Functional
Comment | File | Size | Author |
---|---|---|---|
#3 | 3088606-3-entity-bundle-plugins.patch | 4.81 KB | bojanz |
|
Comments
Comment #2
bojanz CreditAttribution: bojanz at Centarro commentedWe have some in the views filter as well.
Comment #3
bojanz CreditAttribution: bojanz at Centarro commentedInjects the entity bundle info service into the field plugin, and starts using it.
Uses the already injected entity bundle info service in the filter plugin.
What remains is calculateDependencies() in the filter plugin, which we can't touch until we rebase on Drupal 8.8, since the entityTypeManager is only present there, not in 8.7.
Comment #4
bojanz CreditAttribution: bojanz at Centarro commentedCommitted.