Commit 20101ecc authored by dagmar's avatar dagmar Committed by slashrsm

Issue #2786493 by dagmar, phenaproxima, slashrsm, Dave Reid: EntityEmbedDialog...

Issue #2786493 by dagmar, phenaproxima, slashrsm, Dave Reid: EntityEmbedDialog causes undefined index notice if no embed display settings are presented to the user
parent 72a93e2d
......@@ -575,7 +575,7 @@ class EntityEmbedDialog extends FormBase {
->loadByProperties(['uuid' => $entity_element['data-entity-uuid']]);
$entity = current($entity) ?: NULL;
$plugin_id = $entity_element['data-entity-embed-display'];
$plugin_settings = $entity_element['data-entity-embed-display-settings'] ?: array();
$plugin_settings = !empty($entity_element['data-entity-embed-display-settings']) ? $entity_element['data-entity-embed-display-settings'] : array();
$display = $this->entityEmbedDisplayManager->createInstance($plugin_id, $plugin_settings);
$display->setContextValue('entity', $entity);
$display->setAttributes($entity_element);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment