You are here

WebformCloseDialogCommand.php in Webform 8.5

Same filename and directory in other branches
  1. 6.x src/Ajax/WebformCloseDialogCommand.php

File

src/Ajax/WebformCloseDialogCommand.php
View source
<?php

namespace Drupal\webform\Ajax;

use Drupal\Core\Ajax\CloseDialogCommand;

/**
 * Provides an Ajax command for closing webform dialog and system tray.
 *
 * This command is implemented in Drupal.AjaxCommands.prototype.webformCloseDialog.
 */
class WebformCloseDialogCommand extends CloseDialogCommand {

  /**
   * {@inheritdoc}
   */
  public function render() {
    return [
      'command' => 'webformCloseDialog',
      'selector' => $this->selector,
      'persist' => $this->persist,
    ];
  }

}

Classes

Namesort descending Description
WebformCloseDialogCommand Provides an Ajax command for closing webform dialog and system tray.