Skip to content

Commit 0ee16ff

Browse files
committed
Dropped %ibexa.dam_widget.image.images_folder_location_id parameter
1 parent 200f11c commit 0ee16ff

File tree

5 files changed

+2
-10
lines changed

5 files changed

+2
-10
lines changed

src/bundle/Resources/config/default_parameters.yaml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,3 @@ parameters:
8686
name: keywords
8787
contentTypeIdentifier: image
8888
fieldDefinitionIdentifier: tags
89-
90-
#Used only for standalone DAM applications to limit content tree to Media -> Images folder only.
91-
ibexa.dam_widget.image.images_folder_location_id: 51

src/bundle/Resources/config/services/ui_config/common.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,6 @@ services:
150150
fieldDefinitionIdentifiers: '%ibexa.dam_widget.image.field_definition_identifiers%'
151151
contentTypeIdentifiers: '%ibexa.dam_widget.image.content_type_identifiers%'
152152
aggregations: '%ibexa.dam_widget.image.aggregations%'
153-
imagesFolderLocationId: '%ibexa.dam_widget.image.images_folder_location_id%'
154153
tags:
155154
- { name: ibexa.admin_ui.config.provider, key: 'damWidget' }
156155

src/bundle/Resources/config/universal_discovery_widget.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,8 @@ system:
6060
richtext_embed_image:
6161
multiple: false
6262
allowed_content_types: ['image']
63+
starting_location_id: 43
64+
root_location_id: 43
6365
image_asset:
6466
multiple: false
6567
single_user:

src/lib/UI/Config/Provider/Module/DamWidget.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
* fieldDefinitionIdentifiers: array<string>,
1919
* contentTypeIdentifiers: array<string>,
2020
* aggregations: array<string, array<string, string>>,
21-
* imagesFolderLocationId: int,
2221
* }
2322
* }
2423
*/
@@ -46,7 +45,6 @@ public function __construct(
4645
* fieldDefinitionIdentifiers: array<string>,
4746
* contentTypeIdentifiers: array<string>,
4847
* aggregations: array<string, array<string, string>>,
49-
* imagesFolderLocationId: int,
5048
* showImageFilters: bool,
5149
* }
5250
* }

tests/lib/UI/Config/Provider/Module/DamWidgetTest.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
* fieldDefinitionIdentifiers: array<string>,
2121
* contentTypeIdentifiers: array<string>,
2222
* aggregations: aggregations: array<string, array<string, string>>,
23-
* imagesFolderLocationId: int,
2423
* showImageFilters: bool,
2524
* }
2625
* }
@@ -46,7 +45,6 @@ final class DamWidgetTest extends TestCase
4645
'fieldDefinitionIdentifier' => 'keywords',
4746
],
4847
];
49-
private const ROOT_LOCATION_ID = 43;
5048

5149
private ProviderInterface $provider;
5250

@@ -62,7 +60,6 @@ protected function setUp(): void
6260
'fieldDefinitionIdentifiers' => self::FIELD_DEFINITION_IDENTIFIERS,
6361
'contentTypeIdentifiers' => self::CONTENT_TYPE_IDENTIFIERS,
6462
'aggregations' => self::IMAGE_AGGREGATIONS,
65-
'imagesFolderLocationId' => self::ROOT_LOCATION_ID,
6663
],
6764
],
6865
$this->repositoryConfigurationProvider
@@ -137,7 +134,6 @@ private function getExpectedConfig(bool $showImageFilters): array
137134
'fieldDefinitionIdentifiers' => self::FIELD_DEFINITION_IDENTIFIERS,
138135
'contentTypeIdentifiers' => self::CONTENT_TYPE_IDENTIFIERS,
139136
'aggregations' => self::IMAGE_AGGREGATIONS,
140-
'imagesFolderLocationId' => self::ROOT_LOCATION_ID,
141137
'showImageFilters' => $showImageFilters,
142138
],
143139
];

0 commit comments

Comments
 (0)