5
5
*/
6
6
namespace Magento \ConfigurableProduct \Ui \DataProvider \Product \Form \Modifier ;
7
7
8
+ use Magento \Catalog \Model \Locator \LocatorInterface ;
8
9
use Magento \Catalog \Model \Product \Attribute \Backend \Sku ;
9
10
use Magento \Catalog \Ui \DataProvider \Product \Form \Modifier \AbstractModifier ;
11
+ use Magento \Framework \UrlInterface ;
10
12
use Magento \Ui \Component \Container ;
11
- use Magento \Ui \Component \Form ;
12
13
use Magento \Ui \Component \DynamicRows ;
14
+ use Magento \Ui \Component \Form ;
13
15
use Magento \Ui \Component \Modal ;
14
- use Magento \Framework \UrlInterface ;
15
- use Magento \Catalog \Model \Locator \LocatorInterface ;
16
16
17
17
/**
18
18
* Data provider for Configurable panel
@@ -90,15 +90,15 @@ public function __construct(
90
90
}
91
91
92
92
/**
93
- * { @inheritdoc}
93
+ * @inheritdoc
94
94
*/
95
95
public function modifyData (array $ data )
96
96
{
97
97
return $ data ;
98
98
}
99
99
100
100
/**
101
- * { @inheritdoc}
101
+ * @inheritdoc
102
102
* @SuppressWarnings(PHPMD.ExcessiveMethodLength)
103
103
*/
104
104
public function modifyMeta (array $ meta )
@@ -197,7 +197,7 @@ public function modifyMeta(array $meta)
197
197
'autoRender ' => false ,
198
198
'componentType ' => 'insertListing ' ,
199
199
'component ' => 'Magento_ConfigurableProduct/js '
200
- .'/components/associated-product-insert-listing ' ,
200
+ . '/components/associated-product-insert-listing ' ,
201
201
'dataScope ' => $ this ->associatedListingPrefix
202
202
. static ::ASSOCIATED_PRODUCT_LISTING ,
203
203
'externalProvider ' => $ this ->associatedListingPrefix
@@ -328,14 +328,12 @@ protected function getButtonSet()
328
328
'component ' => 'Magento_Ui/js/form/components/button ' ,
329
329
'actions ' => [
330
330
[
331
- 'targetName ' =>
332
- $ this ->dataScopeName . '.configurableModal ' ,
331
+ 'targetName ' => $ this ->dataScopeName . '.configurableModal ' ,
333
332
'actionName ' => 'trigger ' ,
334
333
'params ' => ['active ' , true ],
335
334
],
336
335
[
337
- 'targetName ' =>
338
- $ this ->dataScopeName . '.configurableModal ' ,
336
+ 'targetName ' => $ this ->dataScopeName . '.configurableModal ' ,
339
337
'actionName ' => 'openModal ' ,
340
338
],
341
339
],
@@ -574,6 +572,7 @@ protected function getColumn(
574
572
'dataType ' => Form \Element \DataType \Text::NAME ,
575
573
'dataScope ' => $ name ,
576
574
'visibleIfCanEdit ' => false ,
575
+ 'labelVisible ' => false ,
577
576
'imports ' => [
578
577
'visible ' => '!${$.provider}:${$.parentScope}.canEdit '
579
578
],
@@ -592,6 +591,7 @@ protected function getColumn(
592
591
'component ' => 'Magento_Ui/js/form/components/group ' ,
593
592
'label ' => $ label ,
594
593
'dataScope ' => '' ,
594
+ 'showLabel ' => false
595
595
];
596
596
$ container ['children ' ] = [
597
597
$ name . '_edit ' => $ fieldEdit ,
0 commit comments