You are here

public function WebformRefreshCommand::render in Webform 8.5

Same name and namespace in other branches
  1. 6.x src/Ajax/WebformRefreshCommand.php \Drupal\webform\Ajax\WebformRefreshCommand::render()

Implements \Drupal\Core\Ajax\CommandInterface:render().

Overrides RedirectCommand::render

File

src/Ajax/WebformRefreshCommand.php, line 17

Class

WebformRefreshCommand
Provides an Ajax command for refreshing webform page.

Namespace

Drupal\webform\Ajax

Code

public function render() {
  return [
    'command' => 'webformRefresh',
    'url' => $this->url,
  ];
}