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.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

KarlShea created an issue. See original summary.

KarlShea’s picture

Status: Active » Needs review
FileSize
470 bytes

I could be totally wrong that this is the right fix, but adding it let me enable the module

Petr Illek’s picture

I can confirm that with the above patch the module will install ok.

Sam152’s picture

Title: Fix enabling module » The browser entity should list the associated view as a config dependency.
Project: Media Entity Browser » Entity Browser
Component: Code » Core API
Status: Needs review » Needs work

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

slashrsm’s picture

Project: Entity Browser » Media Entity Browser
Component: Core API » Code
Issue tags: +D8Media
acbramley’s picture

Status: Needs work » Reviewed & tested by the community

Had the same issue when enabling media_entity_browser via a profile dependency, patch fixes it.

Sam152’s picture

Status: Reviewed & tested by the community » Fixed

  • Sam152 committed 74702f2 on 8.x-1.x authored by KarlShea
    Issue #2850574 by KarlShea: The browser entity should list the...

Status: Fixed » Closed (fixed)

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