diff --git a/src/Service/ImageOverviewFormBuilder.php b/src/Service/ImageOverviewFormBuilder.php index 0f20f6d..96d3080 100644 --- a/src/Service/ImageOverviewFormBuilder.php +++ b/src/Service/ImageOverviewFormBuilder.php @@ -98,9 +98,9 @@ public function setForm(array &$form, FormOptions $options, ?array $configuratio '#markup' => '

' . $image['name'] . '

', ]; - if ($image['field_width_value']) { + if (isset($image['field_width'], $image['field_height'])) { $form['container']['list'][$key]['dimensions'] = [ - '#markup' => sprintf('

%s x %s

', $image['field_width_value'], $image['field_height_value']), + '#markup' => sprintf('

%s x %s

', $image['field_width'], $image['field_height']), ]; } }