entity_get_bundles() is deprecated, so needs to be replaced.

Tag1 supports Drupal development!Tag1 logo

Comments

joachim created an issue. See original summary.

markpavlitski’s picture

Status: Active » Needs review
FileSize
2.15 KB

Patch attached to replace entity_get_bundles() with \Drupal::entityManager()->getBundleInfo().

Status: Needs review » Needs work

The last submitted patch, 2: flag-remove-entity_get_bundles-2552131-2.patch, failed testing.

Status: Needs work » Needs review

Status: Needs review » Needs work

The last submitted patch, 2: flag-remove-entity_get_bundles-2552131-2.patch, failed testing.

joachim’s picture

I think our tests have been broken by a change in core...

joshi.rohit100’s picture

Status: Needs work » Needs review
FileSize
2.87 KB
654 bytes

Here is why test failing

giancarlosotelo’s picture

FileSize
889 bytes
2.61 KB

I 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.

joachim’s picture

Status: Needs review » Needs work

Agreed -- 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.

giancarlosotelo’s picture

markpavlitski’s picture

Status: Needs work » Needs review

Marking back as needs review for the patch in #2.

joachim’s picture

Status: Needs review » Fixed

Thanks everyone! Committed.

Status: Fixed » Closed (fixed)

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