diff --git a/src/Plugin/DisplayVariant/PanelsDisplayVariant.php b/src/Plugin/DisplayVariant/PanelsDisplayVariant.php index aa34cf2..46bd471 100644 --- a/src/Plugin/DisplayVariant/PanelsDisplayVariant.php +++ b/src/Plugin/DisplayVariant/PanelsDisplayVariant.php @@ -547,4 +547,13 @@ class PanelsDisplayVariant extends BlockDisplayVariant { return $data; } + public function id() { + // Explicit IPE/Panelizer Support. + if (!empty($this->getContexts()['@panelizer.entity_context:entity']) && $this->getContexts()['@panelizer.entity_context:entity']->hasContextValue()) { + return $this->getContexts()['@panelizer.entity_context:entity']->getContextValue()->uuid(); + } + // If the panelizer context isn't available, just return our uuid. + return parent::id(); + } + }