3 namespace Drupal\Core\Ajax;
6 * AJAX command for a javascript alert box.
10 class AlertCommand implements CommandInterface {
13 * The text to be displayed in the alert box.
20 * Constructs an AlertCommand object.
23 * The text to be displayed in the alert box.
25 public function __construct($text) {
30 * Implements Drupal\Core\Ajax\CommandInterface:render().
32 public function render() {
36 'text' => $this->text,