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.
With a fresh checkout of Entity Embed and Entity Browser, attempting to embed an entity using CKEditor fails with:
Argument 1 passed to Drupal\entity_browser\Plugin\EntityBrowser\Display\Modal::displayEntityBrowser() must implement interface Drupal\Core\Form\FormStateInterface, none given, called in /entity_embed/src/Form/EntityEmbedDialog.php on line 211
It looks like Entity Browser's displayEntityBrowser()
method must now be passed $form_state
.
Comment | File | Size | Author |
---|---|---|---|
#2 | 2696261-2.patch | 3.62 KB | Devin Carlson |
#2 | 2696261-2-tests-only.patch | 2.81 KB | Devin Carlson |
Comments
Comment #2
Devin Carlson CreditAttribution: Devin Carlson commentedA patch to pass
$form_state
todisplayEntityBrowser()
.Uploading here in addition to Github to verify that the tests work.
Comment #5
Devin Carlson CreditAttribution: Devin Carlson commentedThe testbot doesn't seem to pick up new test dependencies or check requirements before running tests.
Comment #7
slashrsm CreditAttribution: slashrsm at Examiner.com commentedMerged GitHub pull request: https://github.com/drupal-media/entity_embed/pull/208
Thanks!