Skip to content

Commit

Permalink
Added mime_types view variable
Browse files Browse the repository at this point in the history
  • Loading branch information
ciastektk committed Dec 8, 2023
1 parent 0c1a118 commit e08900b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/lib/Form/Type/FieldType/ImageAssetFieldType.php
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,10 @@ public function buildView(FormView $view, FormInterface $form, array $options)
}
}

$view->vars['mime_types'] = $this->assetMapper
->getAssetFieldDefinition()
->getFieldSettings()['mimeTypes'] ?? [];

$view->vars['max_file_size'] = $this->getMaxFileSize();
}

Expand Down

0 comments on commit e08900b

Please sign in to comment.