|
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 | ], |
@@ -471,8 +469,7 @@ protected function getRows() |
471 | 469 | 'sku', |
472 | 470 | __('SKU'), |
473 | 471 | [ |
474 | | - 'validation' => |
475 | | - [ |
| 472 | + 'validation' => [ |
476 | 473 | 'required-entry' => true, |
477 | 474 | 'max_text_length' => Sku::SKU_MAX_LENGTH, |
478 | 475 | ], |
|
0 commit comments