3
3
* Copyright © Magento, Inc. All rights reserved.
4
4
* See COPYING.txt for license details.
5
5
*/
6
+ declare (strict_types=1 );
7
+
6
8
namespace Magento \Cms \Block \Adminhtml \Wysiwyg \Images ;
7
9
8
10
/**
@@ -45,40 +47,60 @@ protected function _construct()
45
47
$ this ->buttonList ->remove ('edit ' );
46
48
$ this ->buttonList ->add (
47
49
'cancel ' ,
48
- ['class ' => 'cancel action-quaternary ' , 'label ' => __ ('Cancel ' ), 'type ' => 'button ' ,
49
- 'onclick ' => 'MediabrowserUtility.closeDialog(); ' ],
50
+ [
51
+ 'class ' => 'cancel action-quaternary ' ,
52
+ 'label ' => __ ('Cancel ' ),
53
+ 'type ' => 'button ' ,
54
+ 'onclick ' => 'MediabrowserUtility.closeDialog(); '
55
+ ],
50
56
0 ,
51
57
0 ,
52
58
'header '
53
59
);
54
60
55
61
$ this ->buttonList ->add (
56
62
'delete_folder ' ,
57
- ['class ' => 'delete no-display action-quaternary ' , 'label ' => __ ('Delete Folder ' ), 'type ' => 'button ' ],
63
+ [
64
+ 'class ' => 'delete no-display action-quaternary ' ,
65
+ 'label ' => __ ('Delete Folder ' ),
66
+ 'type ' => 'button '
67
+ ],
58
68
0 ,
59
69
0 ,
60
70
'header '
61
71
);
62
72
63
73
$ this ->buttonList ->add (
64
74
'delete_files ' ,
65
- ['class ' => 'delete no-display action-quaternary ' , 'label ' => __ ('Delete Selected ' ), 'type ' => 'button ' ],
75
+ [
76
+ 'class ' => 'delete no-display action-quaternary ' ,
77
+ 'label ' => __ ('Delete Selected ' ),
78
+ 'type ' => 'button '
79
+ ],
66
80
0 ,
67
81
0 ,
68
82
'header '
69
83
);
70
84
71
85
$ this ->buttonList ->add (
72
86
'new_folder ' ,
73
- ['class ' => 'save ' , 'label ' => __ ('Create Folder ' ), 'type ' => 'button ' ],
87
+ [
88
+ 'class ' => 'save new_folder ' ,
89
+ 'label ' => __ ('Create Folder ' ),
90
+ 'type ' => 'button '
91
+ ],
74
92
0 ,
75
93
0 ,
76
94
'header '
77
95
);
78
96
79
97
$ this ->buttonList ->add (
80
98
'insert_files ' ,
81
- ['class ' => 'save no-display action-primary ' , 'label ' => __ ('Add Selected ' ), 'type ' => 'button ' ],
99
+ [
100
+ 'class ' => 'save no-display action-primary ' ,
101
+ 'label ' => __ ('Add Selected ' ),
102
+ 'type ' => 'button '
103
+ ],
82
104
0 ,
83
105
0 ,
84
106
'header '
@@ -92,9 +114,7 @@ protected function _construct()
92
114
*/
93
115
public function getContentsUrl ()
94
116
{
95
- return $ this ->getUrl ('cms/*/contents ' , [
96
- 'type ' => $ this ->getRequest ()->getParam ('type ' ),
97
- ]);
117
+ return $ this ->getUrl ('cms/*/contents ' , ['type ' => $ this ->getRequest ()->getParam ('type ' )]);
98
118
}
99
119
100
120
/**
0 commit comments