public function AlertCommand::render

8.x AlertCommand.php public AlertCommand::render()

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

Overrides CommandInterface::render

File

drupal/core/lib/Drupal/Core/Ajax/AlertCommand.php, line 37
Definition of Drupal\Core\Ajax\AlertCommand.

Class

AlertCommand
AJAX command for a javascript alert box.

Namespace

Drupal\Core\Ajax

Code

public function render() {

  return array(
    'command' => 'alert',
    'text' => $this->text,
  );
}