File tree Expand file tree Collapse file tree 3 files changed +20
-6
lines changed
app/code/Magento/Ui/Config
lib/internal/Magento/Framework/View/Element Expand file tree Collapse file tree 3 files changed +20
-6
lines changed Original file line number Diff line number Diff line change @@ -270,6 +270,6 @@ private function convertChildNodes(\DOMNode $node)
270
270
}
271
271
}
272
272
273
- return array ( $ arguments , $ childResult) ;
273
+ return [ $ arguments , $ childResult] ;
274
274
}
275
275
}
Original file line number Diff line number Diff line change @@ -87,10 +87,7 @@ private function toArray(\DOMNode $node)
87
87
} else {
88
88
list ($ arguments , $ childResult ) = $ this ->convertChildNodes ($ node );
89
89
90
- if (!empty ($ arguments )) {
91
- $ result [static ::ARGUMENT_KEY ] = $ arguments ;
92
- }
93
-
90
+ $ result += $ this ->processArguments ($ arguments );
94
91
$ result += $ childResult ;
95
92
}
96
93
break ;
@@ -190,6 +187,22 @@ private function convertChildNodes(\DOMNode $node)
190
187
}
191
188
}
192
189
193
- return array ($ arguments , $ childResult );
190
+ return [$ arguments , $ childResult ];
191
+ }
192
+
193
+ /**
194
+ * Process component arguments
195
+ *
196
+ * @param array $arguments
197
+ * @return array
198
+ */
199
+ private function processArguments (array $ arguments )
200
+ {
201
+ $ result = [];
202
+ if (!empty ($ arguments )) {
203
+ $ result [static ::ARGUMENT_KEY ] = $ arguments ;
204
+ }
205
+
206
+ return $ result ;
194
207
}
195
208
}
Original file line number Diff line number Diff line change @@ -89,6 +89,7 @@ public function __construct(
89
89
DataInterface $ definitionData = null
90
90
) {
91
91
$ this ->objectManager = $ objectManager ;
92
+ $ this ->componentManager = $ componentManager ;
92
93
$ this ->argumentInterpreter = $ argumentInterpreter ;
93
94
$ this ->contextFactory = $ contextFactory ;
94
95
$ this ->componentChildFactories = $ componentChildFactories ;
You can’t perform that action at this time.
0 commit comments