Problem/Motivation
In the issue #3251250: WSOD after installation on media overview I got reminded that we miss the move to the entity update api.
See also https://api.drupal.org/api/drupal/core%21lib%21Drupal%21Core%21Entity%21...
Proposed resolution
Ensure field storage installation.
Remaining tasks
I'm not sure if an deinstallation is also needed .. it will get uninstalled auto-magically right now.
Probably the hook_entity_base_field_info can be moved to hook_entity_base_field_alter, which has a change warning here https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Entity!entity.api... - #2346329: hook_entity_base_field_info_alter() and hook_entity_bundle_field_info_alter() are documented to get a parameter that doesn't implement an interface with setter methods
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | 3251364-introduce_entity_query_api-2.patch | 4.31 KB | ytsurk |
Comments
Comment #2
ytsurkHere a first patch.
Yet only updating media's image bundle on vocabulary change. This should probably done for all bundles.
Or none, as it will anyway introduce other side effects when changing the vocabulary ...
Shall we really support the change of vocabularies actively?
Comment #3
ytsurkI split out the selective cache rebuild to #3253966: Only clear caches if vocabulary is changed on config form
Comment #4
ytsurkComment #5
rang501 commentedShould not be an issue anymore