Skip to content

Commit

Permalink
🔃 Remove Page Builder dependency
Browse files Browse the repository at this point in the history
Accepted Community Pull Requests:
  • Loading branch information
magento-engcom-team authored Apr 22, 2020
2 parents dbe552b + 77ac19a commit 7939600
Show file tree
Hide file tree
Showing 15 changed files with 52 additions and 477 deletions.
40 changes: 40 additions & 0 deletions MediaGalleryIntegration/Model/OpenDialogUrlProvider.php
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';
}
}
56 changes: 0 additions & 56 deletions MediaGalleryIntegration/Plugin/UpdateOpenDialogUrl.php

This file was deleted.

57 changes: 0 additions & 57 deletions MediaGalleryIntegration/Plugin/UpdateOpenDialogUrlPageBuilder.php

This file was deleted.

59 changes: 0 additions & 59 deletions MediaGalleryIntegration/Plugin/UpdateWysiwygDialogUrlTinyMce.php

This file was deleted.

73 changes: 0 additions & 73 deletions MediaGalleryIntegration/Plugin/UpdateWysiwygOpenDialogUrl.php

This file was deleted.

This file was deleted.

Loading

0 comments on commit 7939600

Please sign in to comment.