From d15a40fec50bf50353f31d456e951d79a3a09177 Mon Sep 17 00:00:00 2001 From: Lars Rackwitz-Rosenberg Date: Wed, 28 Oct 2015 23:38:50 +0100 Subject: [PATCH 1/2] Fix bug in IFrame.php. --- src/Plugin/EntityBrowser/Display/IFrame.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Plugin/EntityBrowser/Display/IFrame.php b/src/Plugin/EntityBrowser/Display/IFrame.php index 8db37ee..c8f1061 100644 --- a/src/Plugin/EntityBrowser/Display/IFrame.php +++ b/src/Plugin/EntityBrowser/Display/IFrame.php @@ -127,9 +127,9 @@ public function defaultConfiguration() { * {@inheritdoc} */ public function displayEntityBrowser() { - /** @var \Drupal\entity_browser\Events\RegisterJSCallbacks $event */ - $event = $this->eventDispatcher->dispatch(Events::REGISTER_JS_CALLBACKS, new RegisterJSCallbacks($this->configuration['entity_browser_id'])); $uuid = $this->getUuid(); + /** @var \Drupal\entity_browser\Events\RegisterJSCallbacks $event */ + $event = $this->eventDispatcher->dispatch(Events::REGISTER_JS_CALLBACKS, new RegisterJSCallbacks($this->configuration['entity_browser_id'], $uuid)); $original_path = $this->currentPath->getPath(); return [ '#theme_wrappers' => ['container'], From 38447596f8ad25e0afcdd33c4c5fd1762b5d0c8b Mon Sep 17 00:00:00 2001 From: Lars Rackwitz-Rosenberg Date: Thu, 29 Oct 2015 00:34:50 +0100 Subject: [PATCH 2/2] Fix bug in with missing uuid in Modal. --- src/Plugin/EntityBrowser/Display/Modal.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Plugin/EntityBrowser/Display/Modal.php b/src/Plugin/EntityBrowser/Display/Modal.php index 92f4545..5283118 100644 --- a/src/Plugin/EntityBrowser/Display/Modal.php +++ b/src/Plugin/EntityBrowser/Display/Modal.php @@ -116,9 +116,9 @@ public function defaultConfiguration() { * {@inheritdoc} */ public function displayEntityBrowser() { - /** @var \Drupal\entity_browser\Events\RegisterJSCallbacks $event */ - $event = $this->eventDispatcher->dispatch(Events::REGISTER_JS_CALLBACKS, new RegisterJSCallbacks($this->configuration['entity_browser_id'])); $uuid = $this->getUuid(); + /** @var \Drupal\entity_browser\Events\RegisterJSCallbacks $event */ + $event = $this->eventDispatcher->dispatch(Events::REGISTER_JS_CALLBACKS, new RegisterJSCallbacks($this->configuration['entity_browser_id'], $uuid)); $original_path = $this->currentPath->getPath(); return [ '#theme_wrappers' => ['container'],