Skip to content

Commit 383f584

Browse files
committed
refactor to use array and first value in array, that added by last module
1 parent a4d6efb commit 383f584

File tree

2 files changed

+6
-4
lines changed
  • app/code/Magento/PageBuilder

2 files changed

+6
-4
lines changed

app/code/Magento/PageBuilder/Model/Config/ContentType/AdditionalData/Provider/Uploader/OpenDialogUrl.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,14 @@ class OpenDialogUrl implements ProviderInterface
2828

2929
/**
3030
* @param Url $urlBuilder
31-
* @param string $openDialogPath
31+
* @param array $openDialogPath
3232
*/
3333
public function __construct(
3434
Url $urlBuilder,
35-
string $openDialogPath
35+
array $openDialogPath
3636
) {
3737
$this->urlBuilder = $urlBuilder;
38-
$this->openDialogPath = $openDialogPath;
38+
$this->openDialogPath = array_shift($openDialogPath);
3939
}
4040

4141
/**

app/code/Magento/PageBuilder/etc/adminhtml/di.xml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,9 @@
1414
</type>
1515
<type name="Magento\PageBuilder\Model\Config\ContentType\AdditionalData\Provider\Uploader\OpenDialogUrl">
1616
<arguments>
17-
<argument name="openDialogPath" xsi:type="string">cms/wysiwyg_images/index</argument>
17+
<argument name="openDialogPath" xsi:type="array">
18+
<item name="default" xsi:type="string">cms/wysiwyg_images/index</item>
19+
</argument>
1820
</arguments>
1921
</type>
2022
<virtualType name="Magento\PageBuilder\Block\Adminhtml\ContentType\Edit\ModalCloseButton" type="Magento\PageBuilder\Block\Adminhtml\ContentType\Edit\CloseButton">

0 commit comments

Comments
 (0)