Skip to content

Commit

Permalink
Added enableMultipleDownload option in DamWidget Config provider
Browse files Browse the repository at this point in the history
  • Loading branch information
ciastektk committed Jun 3, 2024
1 parent 066e995 commit 2bb0281
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/lib/UI/Config/Provider/Module/DamWidget.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
* contentTypeIdentifiers: array<string>,
* aggregations: array<string, array<string, string>>,
* showImageFilters: bool,
* enableMultipleDownload: bool,
* mappings: array<
* string,
* array{
Expand Down Expand Up @@ -100,6 +101,7 @@ private function getImageConfig(): array
$imageConfig = [
'showImageFilters' => $this->showImageFilters(),
'aggregations' => $this->config['image']['aggregations'],
'enableMultipleDownload' => extension_loaded('zip'),
];

$mappings = [];
Expand Down
1 change: 1 addition & 0 deletions tests/lib/UI/Config/Provider/Module/DamWidgetTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,7 @@ private function getExpectedConfig(bool $showImageFilters): array
],
'aggregations' => self::IMAGE_AGGREGATIONS,
'showImageFilters' => $showImageFilters,
'enableMultipleDownload' => true,
'mappings' => self::IMAGE_MAPPINGS,
],
'folder' => [
Expand Down

0 comments on commit 2bb0281

Please sign in to comment.