Skip to content

Commit

Permalink
Revert "Allowing Image fields for multi-file media (Islandora#860)"
Browse files Browse the repository at this point in the history
This reverts commit a297796.
  • Loading branch information
rosiel committed Jul 25, 2022
1 parent a297796 commit 42e703c
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions src/Plugin/Action/AbstractGenerateDerivativeMediaFile.php
Original file line number Diff line number Diff line change
Expand Up @@ -88,16 +88,10 @@ protected function generateData(EntityInterface $entity) {
*/
public function buildConfigurationForm(array $form, FormStateInterface $form_state) {
$form = parent::buildConfigurationForm($form, $form_state);

$map = $this->entityFieldManager->getFieldMapByFieldType('file');
$file_fields = $map['media'];
$file_options = array_combine(array_keys($file_fields), array_keys($file_fields));

$map = $this->entityFieldManager->getFieldMapByFieldType('image');
$image_fields = $map['media'];
$image_options = array_combine(array_keys($image_fields), array_keys($image_fields));

$file_options = array_merge(['' => ''], $file_options, $image_options);
$file_options = array_merge(['' => ''], $file_options);
$form['event']['#disabled'] = 'disabled';

$form['destination_field_name'] = [
Expand Down

0 comments on commit 42e703c

Please sign in to comment.