public function WebformCloseDialogCommand::render in Webform 6.x
Same name and namespace in other branches
- 8.5 src/Ajax/WebformCloseDialogCommand.php \Drupal\webform\Ajax\WebformCloseDialogCommand::render()
Return an array to be run through json_encode and sent to the client.
Overrides CloseDialogCommand::render
File
- src/
Ajax/ WebformCloseDialogCommand.php, line 17
Class
- WebformCloseDialogCommand
- Provides an Ajax command for closing webform dialog and system tray.
Namespace
Drupal\webform\AjaxCode
public function render() {
return [
'command' => 'webformCloseDialog',
'selector' => $this->selector,
'persist' => $this->persist,
];
}