class WebformCloseDialogCommand in Webform 6.x
Same name and namespace in other branches
- 8.5 src/Ajax/WebformCloseDialogCommand.php \Drupal\webform\Ajax\WebformCloseDialogCommand
Provides an Ajax command for closing webform dialog and system tray.
This command is implemented in Drupal.AjaxCommands.prototype.webformCloseDialog.
Hierarchy
- class \Drupal\Core\Ajax\CloseDialogCommand implements CommandInterface
- class \Drupal\webform\Ajax\WebformCloseDialogCommand
Expanded class hierarchy of WebformCloseDialogCommand
1 file declares its use of WebformCloseDialogCommand
- WebformAjaxFormTrait.php in src/
Form/ WebformAjaxFormTrait.php
File
- src/
Ajax/ WebformCloseDialogCommand.php, line 12
Namespace
Drupal\webform\AjaxView source
class WebformCloseDialogCommand extends CloseDialogCommand {
/**
* {@inheritdoc}
*/
public function render() {
return [
'command' => 'webformCloseDialog',
'selector' => $this->selector,
'persist' => $this->persist,
];
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
CloseDialogCommand:: |
protected | property | Whether to persist the dialog in the DOM or not. | |
CloseDialogCommand:: |
protected | property | A CSS selector string of the dialog to close. | |
CloseDialogCommand:: |
public | function | Constructs a CloseDialogCommand object. | 1 |
WebformCloseDialogCommand:: |
public | function |
Return an array to be run through json_encode and sent to the client. Overrides CloseDialogCommand:: |