You are here

public function WebformConfirmReloadCommand::render in Webform 6.x

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

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

Overrides CommandInterface::render

File

src/Ajax/WebformConfirmReloadCommand.php, line 34

Class

WebformConfirmReloadCommand
Provides an Ajax command for confirming page reload.

Namespace

Drupal\webform\Ajax

Code

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