function AlertCommand::__construct
Constructs an AlertCommand object.
Parameters
string $text: The text to be displayed in the alert box.
File
-
core/
lib/ Drupal/ Core/ Ajax/ AlertCommand.php, line 25
Class
- AlertCommand
- AJAX command for a javascript alert box.
Namespace
Drupal\Core\AjaxCode
public function __construct($text) {
$this->text = $text;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.