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.
I was getting "Call to a member function getConfigDependencyKey() on null" in Drupal\entity_browser\Plugin\EntityBrowser\Widget\View->calculateDependencies() when trying to enable the module using entity_browser dev. From #2845037: Fix the call to a member function getConfigDependencyKey() on null on Widget view and SelectionDisplay view and #2849475: Entity browser configuration doesn't correctly declare all its dependencies it looks like it's because the dependent configuration isn't declared when creating the entity browser.
Comment | File | Size | Author |
---|---|---|---|
#2 | meb_add_config-2850574-2.patch | 470 bytes | KarlShea |
|
Comments
Comment #2
KarlSheaI could be totally wrong that this is the right fix, but adding it let me enable the module
Comment #3
Petr IllekI can confirm that with the above patch the module will install ok.
Comment #4
Sam152 CreditAttribution: Sam152 as a volunteer and at PreviousNext commentedWe shouldn't need to add these manually. The 'browser' entity should add the view as a dependency in the 'calculateDependency' method so these are added automatically.
Comment #5
slashrsm CreditAttribution: slashrsm at MD Systems GmbH commentedThis was recently done in #2840024: Entity browser entities with a Views widget or selection plugin should have a dependency on the respective View. Existing config still needs to be updated manually.
Comment #6
acbramley CreditAttribution: acbramley commentedHad the same issue when enabling media_entity_browser via a profile dependency, patch fixes it.
Comment #7
Sam152 CreditAttribution: Sam152 as a volunteer and at PreviousNext commented