-
Notifications
You must be signed in to change notification settings - Fork 91
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Accepted Community Pull Requests:
- Loading branch information
Showing
15 changed files
with
52 additions
and
477 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
<?php | ||
/** | ||
* Copyright © Magento, Inc. All rights reserved. | ||
* See COPYING.txt for license details. | ||
*/ | ||
declare(strict_types=1); | ||
|
||
namespace Magento\MediaGalleryIntegration\Model; | ||
|
||
use Magento\MediaGalleryUiApi\Api\ConfigInterface; | ||
use Magento\Framework\DataObject; | ||
|
||
/** | ||
* Provider to get open media gallery dialog URL for WYSIWYG and widgets | ||
*/ | ||
class OpenDialogUrlProvider extends DataObject | ||
{ | ||
/** | ||
* @var ConfigInterface | ||
*/ | ||
private $config; | ||
|
||
/** | ||
* @param ConfigInterface $config | ||
*/ | ||
public function __construct(ConfigInterface $config) | ||
{ | ||
$this->config = $config; | ||
} | ||
|
||
/** | ||
* Get Url based on media gallery configuration | ||
* | ||
* @return string | ||
*/ | ||
public function getUrl(): string | ||
{ | ||
return $this->config->isEnabled() ? 'media_gallery/index/index' : 'cms/wysiwyg_images/index'; | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
57 changes: 0 additions & 57 deletions
57
MediaGalleryIntegration/Plugin/UpdateOpenDialogUrlPageBuilder.php
This file was deleted.
Oops, something went wrong.
59 changes: 0 additions & 59 deletions
59
MediaGalleryIntegration/Plugin/UpdateWysiwygDialogUrlTinyMce.php
This file was deleted.
Oops, something went wrong.
73 changes: 0 additions & 73 deletions
73
MediaGalleryIntegration/Plugin/UpdateWysiwygOpenDialogUrl.php
This file was deleted.
Oops, something went wrong.
87 changes: 0 additions & 87 deletions
87
MediaGalleryIntegration/Test/Unit/Plugin/UpdateOpenDialogUrlTest.php
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.