-
Notifications
You must be signed in to change notification settings - Fork 9.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improve opendialogurl configuration to be extensible #27863
Improve opendialogurl configuration to be extensible #27863
Conversation
Hi @Nazar65. Thank you for your contribution
For more details, please, review the Magento Contributor Guide documentation. |
Functional Test failing on Page Builder repo on dev branch, as pr linked with PB, they are failing too, |
/** | ||
* @param string $openDialog | ||
*/ | ||
public function __construct(string $openDialog = null) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The class name already contains OpenDialog
public function __construct(string $openDialog = null) | |
public function __construct(string $url = null) |
/** | ||
* Returns open dialog url for media browser | ||
*/ | ||
public function getOpenDialogUrl(): string |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To avoid duplicate naming between class and method
public function getOpenDialogUrl(): string | |
public function get(): string |
/** | ||
* @var OpednDialogUrl | ||
*/ | ||
private $openDialogConfig; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's keep consistent naming between class, property and variable to avoid confusion
private $openDialogConfig; | |
private $openDialogUrl; |
@magento run all tests |
@magento run all tests |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the update @Nazar65 !
Can we also use the OpenDialogUrl provider in:
- \Magento\Cms\Model\Wysiwyg\Gallery\DefaultConfigProvider::getConfig
- \Magento\Tinymce3\Model\Config\Gallery\Config::getConfig
@magento run all tests |
1 similar comment
@magento run all tests |
Hi @sivaschenko, thank you for the review.
|
Hi @sivaschenko, thank you for the review. |
@magento run all tests |
@magento run all tests |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Nazar65 Please fix the failing tests
@magento run all tests |
Closing as this changes moved to #27566 |
Hi @Nazar65, thank you for your contribution! |
Description (*)
Related Pull Requests
magento/magento2-page-builder#450
magento/adobe-stock-integration#1186
Fixed Issues (if relevant)
N/A
Manual testing scenarios (*)
Verify that media gallery opened corrects in all cases
1.with AdobeStockIntegration && PageBuilder
Questions or comments
Contribution checklist (*)