class WebformRefreshCommand in Webform 6.x
Same name and namespace in other branches
- 8.5 src/Ajax/WebformRefreshCommand.php \Drupal\webform\Ajax\WebformRefreshCommand
Provides an Ajax command for refreshing webform page.
This command is implemented in Drupal.AjaxCommands.prototype.webformRefresh.
Hierarchy
- class \Drupal\Core\Ajax\RedirectCommand implements CommandInterface
- class \Drupal\webform\Ajax\WebformRefreshCommand
Expanded class hierarchy of WebformRefreshCommand
3 files declare their use of WebformRefreshCommand
File
- src/
Ajax/ WebformRefreshCommand.php, line 12
Namespace
Drupal\webform\AjaxView source
class WebformRefreshCommand extends RedirectCommand {
/**
* Implements \Drupal\Core\Ajax\CommandInterface:render().
*/
public function render() {
return [
'command' => 'webformRefresh',
'url' => $this->url,
];
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
RedirectCommand:: |
protected | property | The URL that will be loaded into window.location. | |
RedirectCommand:: |
public | function | Constructs an RedirectCommand object. | |
WebformRefreshCommand:: |
public | function |
Implements \Drupal\Core\Ajax\CommandInterface:render(). Overrides RedirectCommand:: |