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.
entity_get_bundles() is deprecated, so needs to be replaced.
Comment | File | Size | Author |
---|---|---|---|
#2 | flag-remove-entity_get_bundles-2552131-2.patch | 2.15 KB | markpavlitski |
Comments
Comment #2
markpavlitski CreditAttribution: markpavlitski at Investis Digital commentedPatch attached to replace
entity_get_bundles()
with\Drupal::entityManager()->getBundleInfo()
.Comment #6
joachim CreditAttribution: joachim commentedI think our tests have been broken by a change in core...
Comment #7
joshi.rohit100Here is why test failing
Comment #8
giancarlosotelo CreditAttribution: giancarlosotelo at MD Systems GmbH commentedI don't think is the best solution.
We are testing that we have the manage fields tab so because of this change in core #507488: Convert page elements (local tasks, actions) into blocks we should add a block of tasks to the test to assert what we want.
Comment #9
joachim CreditAttribution: joachim commentedAgreed -- though could you post the fix to the test in a new issue please? It's not related to the change we're making here.
Comment #10
giancarlosotelo CreditAttribution: giancarlosotelo at MD Systems GmbH commentedCreated #2561867: Test broken due to recent core change with tasks and actions blocks
Comment #11
markpavlitski CreditAttribution: markpavlitski at Investis Digital commentedMarking back as needs review for the patch in #2.
Comment #13
joachim CreditAttribution: joachim commentedThanks everyone! Committed.