Skip to content

Commit

Permalink
magento/adobe-stock-integration#1712: Remove DataObject usage from Op…
Browse files Browse the repository at this point in the history
…enDialogUrl provider - apply requested changes
  • Loading branch information
joweecaquicla committed Aug 13, 2020
1 parent 0192ca5 commit e2f2805
Showing 1 changed file with 9 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,16 +20,21 @@ class OpenDialogUrl
*/
private $openDialogUrl;

/**
* @param string $url
*/
public function __construct(string $url = null)
{
$this->openDialogUrl = $url ?? self::DEFAULT_OPEN_DIALOG_URL;
}

/**
* Returns open dialog url for media browser
*
* @return string
*/
public function get(): string
{
if ($this->openDialogUrl) {
return $this->openDialogUrl;
}
return self::DEFAULT_OPEN_DIALOG_URL;
return $this->openDialogUrl;
}
}

0 comments on commit e2f2805

Please sign in to comment.