Constructs an AlertCommand object.
Parameters
string $text:
The text to be displayed in the alert box.
File
- drupal/core/lib/Drupal/Core/Ajax/AlertCommand.php, line 30
- Definition of Drupal\Core\Ajax\AlertCommand.
Class
- AlertCommand
- AJAX command for a javascript alert box.
Namespace
Drupal\Core\Ajax
Code
public function __construct($text) {
$this->text = $text;
}