You are here

WebformRefreshCommand.php in Webform 6.x

Same filename and directory in other branches
  1. 8.5 src/Ajax/WebformRefreshCommand.php

File

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

namespace Drupal\webform\Ajax;

use Drupal\Core\Ajax\RedirectCommand;

/**
 * Provides an Ajax command for refreshing webform page.
 *
 * This command is implemented in Drupal.AjaxCommands.prototype.webformRefresh.
 */
class WebformRefreshCommand extends RedirectCommand {

  /**
   * Implements \Drupal\Core\Ajax\CommandInterface:render().
   */
  public function render() {
    return [
      'command' => 'webformRefresh',
      'url' => $this->url,
    ];
  }

}

Classes

Namesort descending Description
WebformRefreshCommand Provides an Ajax command for refreshing webform page.