File tree Expand file tree Collapse file tree 1 file changed +1
-21
lines changed
app/code/Magento/Config/Block/System/Config/Form/Field Expand file tree Collapse file tree 1 file changed +1
-21
lines changed Original file line number Diff line number Diff line change 13
13
14
14
namespace Magento \Config \Block \System \Config \Form \Field ;
15
15
16
- use Magento \Framework \Data \Form \Element \CollectionFactory ;
17
- use Magento \Framework \Escaper ;
18
- use Magento \Framework \Data \Form \Element \Factory ;
19
-
20
16
class File extends \Magento \Framework \Data \Form \Element \File
21
17
{
22
- /**
23
- * @param Factory $factoryElement
24
- * @param CollectionFactory $factoryCollection
25
- * @param Escaper $escaper
26
- * @param array $data
27
- */
28
- public function __construct (
29
- Factory $ factoryElement ,
30
- CollectionFactory $ factoryCollection ,
31
- Escaper $ escaper ,
32
- array $ data = []
33
- ) {
34
- $ this ->escaper = $ escaper ;
35
- parent ::__construct ($ factoryElement , $ factoryCollection , $ this ->escaper , $ data );
36
- }
37
-
38
18
/**
39
19
* Get element html
40
20
*
@@ -57,7 +37,7 @@ protected function _getDeleteCheckbox()
57
37
$ html = '' ;
58
38
if ((string )$ this ->getValue ()) {
59
39
$ label = __ ('Delete File ' );
60
- $ html .= '<div> ' . $ this ->escaper ->escapeHtml ($ this ->getValue ()) . ' ' ;
40
+ $ html .= '<div> ' . $ this ->_escaper ->escapeHtml ($ this ->getValue ()) . ' ' ;
61
41
$ html .= '<input type="checkbox" name=" ' .
62
42
parent ::getName () .
63
43
'[delete]" value="1" class="checkbox" id=" ' .
You can’t perform that action at this time.
0 commit comments