
| Current Path : /var/www/html/12park/web/modules/contrib/webform/src/Ajax/ |
Linux ift1.ift-informatik.de 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64 |
| Current File : /var/www/html/12park/web/modules/contrib/webform/src/Ajax/WebformConfirmReloadCommand.php |
<?php
namespace Drupal\webform\Ajax;
use Drupal\Core\Ajax\CommandInterface;
/**
* Provides an Ajax command for confirming page reload.
*
* This command is implemented in Drupal.AjaxCommands.prototype.webformConfirmReload.
*/
class WebformConfirmReloadCommand implements CommandInterface {
/**
* The message to be displayed.
*
* @var string
*/
protected $message;
/**
* Constructs a WebformConfirmReloadCommand object.
*
* @param string $message
* The message to be displayed.
*/
public function __construct($message) {
$this->message = $message;
}
/**
* Implements \Drupal\Core\Ajax\CommandInterface:render().
*/
public function render() {
return [
'command' => 'webformConfirmReload',
'message' => $this->message,
];
}
}