OpenModalDialogWithUrl command
Compare changes
+ 57
− 0
We are not reusing anything from
\Drupal\Core\Ajax\OpenModalDialogCommand
class so it's not required according to me.Edited by utkarsh_33
We are not reusing anything from \Drupal\Core\Ajax\OpenModalDialogCommand
class so it's not required according to me.
This is done intentionally as we don't want the public methods and it's much more similar to the RedirectCommand
than the OpenModalDialogCommand , well does open the url in a modal.
but we could add a comment to link them as means to open modals still OpenModalDialogCommand
and OpenModalDialogWithUrl
I added a comment on OpenModalDialogWithUrl
and reference to the AjaxCommandsTest
which might be helpful.