3
3
* Copyright © Magento, Inc. All rights reserved.
4
4
* See COPYING.txt for license details.
5
5
*/
6
+
6
7
namespace Magento \Downloadable \Ui \DataProvider \Product \Form \Modifier ;
7
8
8
- use Magento \Catalog \Ui \DataProvider \Product \Form \Modifier \AbstractModifier ;
9
9
use Magento \Catalog \Model \Locator \LocatorInterface ;
10
+ use Magento \Catalog \Ui \DataProvider \Product \Form \Modifier \AbstractModifier ;
10
11
use Magento \Downloadable \Model \Product \Type ;
11
- use Magento \Downloadable \Model \Source \TypeUpload ;
12
12
use Magento \Downloadable \Model \Source \Shareable ;
13
- use Magento \Store \Model \StoreManagerInterface ;
13
+ use Magento \Downloadable \Model \Source \ TypeUpload ;
14
14
use Magento \Framework \Stdlib \ArrayManager ;
15
- use Magento \Ui \Component \DynamicRows ;
16
15
use Magento \Framework \UrlInterface ;
16
+ use Magento \Store \Model \StoreManagerInterface ;
17
17
use Magento \Ui \Component \Container ;
18
+ use Magento \Ui \Component \DynamicRows ;
18
19
use Magento \Ui \Component \Form ;
19
20
20
21
/**
21
- * Class adds a grid with links
22
+ * Class adds a grid with links.
23
+ *
22
24
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
23
25
*/
24
26
class Links extends AbstractModifier
@@ -238,6 +240,7 @@ protected function getTitleColumn()
238
240
'label ' => __ ('Title ' ),
239
241
'showLabel ' => false ,
240
242
'dataScope ' => '' ,
243
+ 'sortOrder ' => 10 ,
241
244
];
242
245
$ titleField ['arguments ' ]['data ' ]['config ' ] = [
243
246
'formElement ' => Form \Element \Input::NAME ,
@@ -267,6 +270,7 @@ protected function getPriceColumn()
267
270
'label ' => __ ('Price ' ),
268
271
'showLabel ' => false ,
269
272
'dataScope ' => '' ,
273
+ 'sortOrder ' => 20 ,
270
274
];
271
275
$ priceField ['arguments ' ]['data ' ]['config ' ] = [
272
276
'formElement ' => Form \Element \Input::NAME ,
@@ -304,6 +308,7 @@ protected function getFileColumn()
304
308
'label ' => __ ('File ' ),
305
309
'showLabel ' => false ,
306
310
'dataScope ' => '' ,
311
+ 'sortOrder ' => 30 ,
307
312
];
308
313
$ fileTypeField ['arguments ' ]['data ' ]['config ' ] = [
309
314
'formElement ' => Form \Element \Select::NAME ,
@@ -370,6 +375,7 @@ protected function getSampleColumn()
370
375
'label ' => __ ('Sample ' ),
371
376
'showLabel ' => false ,
372
377
'dataScope ' => '' ,
378
+ 'sortOrder ' => 40 ,
373
379
];
374
380
$ sampleTypeField ['arguments ' ]['data ' ]['config ' ] = [
375
381
'formElement ' => Form \Element \Select::NAME ,
@@ -432,6 +438,7 @@ protected function getShareableColumn()
432
438
'componentType ' => Form \Field::NAME ,
433
439
'dataType ' => Form \Element \DataType \Number::NAME ,
434
440
'dataScope ' => 'is_shareable ' ,
441
+ 'sortOrder ' => 50 ,
435
442
'options ' => $ this ->shareable ->toOptionArray (),
436
443
];
437
444
@@ -452,6 +459,7 @@ protected function getMaxDownloadsColumn()
452
459
'label ' => __ ('Max. Downloads ' ),
453
460
'showLabel ' => false ,
454
461
'dataScope ' => '' ,
462
+ 'sortOrder ' => 60 ,
455
463
];
456
464
$ numberOfDownloadsField ['arguments ' ]['data ' ]['config ' ] = [
457
465
'formElement ' => Form \Element \Input::NAME ,
0 commit comments