diff --git a/modules/islandora_image/src/Plugin/Action/GenerateImageDerivative.php b/modules/islandora_image/src/Plugin/Action/GenerateImageDerivative.php index 8e49617ed..dec556591 100644 --- a/modules/islandora_image/src/Plugin/Action/GenerateImageDerivative.php +++ b/modules/islandora_image/src/Plugin/Action/GenerateImageDerivative.php @@ -49,8 +49,6 @@ public function buildConfigurationForm(array $form, FormStateInterface $form_sta ] ]; $form = $this->utils->array_insert_after($form, 'mimetype', $new); - - return $form; } diff --git a/modules/islandora_image/src/Plugin/Action/GenerateImageDerivativeFile.php b/modules/islandora_image/src/Plugin/Action/GenerateImageDerivativeFile.php index dd7aa3734..a18f076e3 100644 --- a/modules/islandora_image/src/Plugin/Action/GenerateImageDerivativeFile.php +++ b/modules/islandora_image/src/Plugin/Action/GenerateImageDerivativeFile.php @@ -43,7 +43,6 @@ public function buildConfigurationForm(array $form, FormStateInterface $form_sta $form['args']['#title'] = $this->t('Additional output arguments'); $form['args']['#description'] = $this->t('Additional output options for ImageMagick convert (e.g. -resize 50% -unsharp 0x.5).
See documentation for available options.'); - $new = [ 'inputargs' => [ '#type' => 'textfield', @@ -54,6 +53,7 @@ public function buildConfigurationForm(array $form, FormStateInterface $form_sta ] ]; $form = $this->utils->array_insert_after($form, 'mimetype', $new); + return $form; }