File tree Expand file tree Collapse file tree 4 files changed +45
-8
lines changed
app/code/Magento/MediaGalleryUi
Ui/Component/Listing/Columns/Source
view/adminhtml/ui_component Expand file tree Collapse file tree 4 files changed +45
-8
lines changed Original file line number Diff line number Diff line change 41
41
<actionGroup ref =" AdminMediaGalleryAssertImageInGridActionGroup" stepKey =" assertImageInGrid" >
42
42
<argument name =" title" value =" ImageMetadata.title" />
43
43
</actionGroup >
44
- <actionGroup ref =" AdminEnhancedMediaGalleryExpandFilterActionGroup" stepKey =" expandFilterToApplySourceFilter" />
45
- <actionGroup ref =" AdminEnhancedMediaGallerySelectSourceFilterActionGroup" stepKey =" applyAdobeStockFilter" >
46
- <argument name =" filterValue" value =" Adobe Stock" />
47
- </actionGroup >
48
- <actionGroup ref =" AdminEnhancedMediaGalleryApplyFiltersActionGroup" stepKey =" applyFiltersWithAdobeStockOption" />
49
- <actionGroup ref =" AdminMediaGalleryAssertImageNotExistsInTheGridActionGroup" stepKey =" assertImageNotExistsInGrid" >
50
- <argument name =" title" value =" ImageMetadata.title" />
51
- </actionGroup >
52
44
</test >
53
45
</tests >
Original file line number Diff line number Diff line change
1
+ <?php
2
+ /**
3
+ * Copyright © Magento, Inc. All rights reserved.
4
+ * See COPYING.txt for license details.
5
+ */
6
+ declare (strict_types=1 );
7
+
8
+ namespace Magento \MediaGalleryUi \Ui \Component \Listing \Columns \Source ;
9
+
10
+ use Magento \Framework \Data \OptionSourceInterface ;
11
+
12
+ /**
13
+ * Image source filter options
14
+ */
15
+ class Options implements OptionSourceInterface
16
+ {
17
+ /**
18
+ * @inheritdoc
19
+ */
20
+ public function toOptionArray (): array
21
+ {
22
+ return [
23
+ [
24
+ 'value ' => 'Local ' ,
25
+ 'label ' => __ ('Uploaded Locally ' ),
26
+ ],
27
+ ];
28
+ }
29
+ }
Original file line number Diff line number Diff line change 122
122
<dataScope >entity_type</dataScope >
123
123
</settings >
124
124
</filterSelect >
125
+ <filterSelect name =" source" provider =" ${ $.parentName }" sortOrder =" 60" >
126
+ <settings >
127
+ <caption translate =" true" >All</caption >
128
+ <options class =" Magento\MediaGalleryUi\Ui\Component\Listing\Columns\Source\Options" />
129
+ <label translate =" true" >Source</label >
130
+ <dataScope >source</dataScope >
131
+ </settings >
132
+ </filterSelect >
125
133
<filterSelect name =" content_status" provider =" ${ $.parentName }" sortOrder =" 220" >
126
134
<settings >
127
135
<options class =" Magento\MediaGalleryUi\Ui\Component\Listing\Filters\Options\Status" />
Original file line number Diff line number Diff line change 109
109
<dataScope >entity_type</dataScope >
110
110
</settings >
111
111
</filterSelect >
112
+ <filterSelect name =" source" provider =" ${ $.parentName }" sortOrder =" 60" >
113
+ <settings >
114
+ <caption translate =" true" >All</caption >
115
+ <options class =" Magento\MediaGalleryUi\Ui\Component\Listing\Columns\Source\Options" />
116
+ <label translate =" true" >Source</label >
117
+ <dataScope >source</dataScope >
118
+ </settings >
119
+ </filterSelect >
112
120
<filterSelect name =" content_status" provider =" ${ $.parentName }" sortOrder =" 220" >
113
121
<settings >
114
122
<options class =" Magento\MediaGalleryUi\Ui\Component\Listing\Filters\Options\Status" />
You can’t perform that action at this time.
0 commit comments