We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0192ca5 commit e2f2805Copy full SHA for e2f2805
app/code/Magento/Ui/Component/Form/Element/DataType/Media/OpenDialogUrl.php
@@ -20,16 +20,21 @@ class OpenDialogUrl
20
*/
21
private $openDialogUrl;
22
23
+ /**
24
+ * @param string $url
25
+ */
26
+ public function __construct(string $url = null)
27
+ {
28
+ $this->openDialogUrl = $url ?? self::DEFAULT_OPEN_DIALOG_URL;
29
+ }
30
+
31
/**
32
* Returns open dialog url for media browser
33
*
34
* @return string
35
36
public function get(): string
37
{
- if ($this->openDialogUrl) {
- return $this->openDialogUrl;
- }
- return self::DEFAULT_OPEN_DIALOG_URL;
38
+ return $this->openDialogUrl;
39
}
40
0 commit comments