diff options
Diffstat (limited to 'core')
-rw-r--r-- | core/misc/dialog/dialog.js | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/core/misc/dialog/dialog.js b/core/misc/dialog/dialog.js index 76a0deea25b..dff0faf22a8 100644 --- a/core/misc/dialog/dialog.js +++ b/core/misc/dialog/dialog.js @@ -78,6 +78,13 @@ class DrupalDialogEvent extends Event { function openDialog(settings) { settings = $.extend({}, drupalSettings.dialog, options, settings); + if (settings.dialogClass) { + Drupal.deprecationError({ + message: + 'dialogClass is deprecated in drupal:10.4.x and will be removed from drupal:12.0.0.', + }); + } + // Trigger a global event to allow scripts to bind events to the dialog. const event = new DrupalDialogEvent('beforecreate', dialog, settings); domElement.dispatchEvent(event); |