Commit 0a8d4b38 authored by recrit's avatar recrit Committed by slashrsm

Issue #2815847 by recrit, slashrsm: Fix - Undefined index:...

Issue #2815847 by recrit, slashrsm: Fix - Undefined index: data-entity-embed-display-settings in Drupal\entity_embed\Form\EntityEmbedDialog->submitEmbedStep().
parent 5fe45605
......@@ -732,7 +732,7 @@ class EntityEmbedDialog extends FormBase {
->loadByProperties(['uuid' => $entity_element['data-entity-uuid']]);
$entity = current($entity);
$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