Skip to content

Commit 0192ca5

Browse files
author
joweecaquicla
committed
magento/adobe-stock-integration#1712: Remove DataObject usage from OpenDialogUrl provider - fixed static test fails and removed unused class
1 parent 7f115fd commit 0192ca5

File tree

3 files changed

+7
-41
lines changed

3 files changed

+7
-41
lines changed

app/code/Magento/MediaGalleryIntegration/Model/OpenDialogUrlProvider.php

Lines changed: 0 additions & 40 deletions
This file was deleted.

app/code/Magento/MediaGalleryIntegration/Plugin/NewMediaGalleryOpenDialogUrl.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@
1010
use Magento\MediaGalleryUiApi\Api\ConfigInterface;
1111
use Magento\Ui\Component\Form\Element\DataType\Media\OpenDialogUrl;
1212

13+
/**
14+
* Plugin to get open media gallery dialog URL for WYSIWYG and widgets
15+
*/
1316
class NewMediaGalleryOpenDialogUrl
1417
{
1518
/**
@@ -26,6 +29,8 @@ public function __construct(ConfigInterface $config)
2629
}
2730

2831
/**
32+
* Get Url based on media gallery configuration
33+
*
2934
* @param OpenDialogUrl $subject
3035
* @param string $result
3136
* @SuppressWarnings(PHPMD.UnusedFormalParameter)

app/code/Magento/MediaGalleryIntegration/composer.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66
"magento/framework": "*",
77
"magento/module-media-gallery-ui-api": "*",
88
"magento/module-media-gallery-api": "*",
9-
"magento/module-media-gallery-synchronization-api": "*"
9+
"magento/module-media-gallery-synchronization-api": "*",
10+
"magento/module-ui": "*"
1011
},
1112
"require-dev": {
1213
"magento/module-cms": "*"

0 commit comments

Comments
 (0)