AlertCommand::render

public AlertCommand::render()

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

Overrides CommandInterface::render

File

core/lib/Drupal/Core/Ajax/AlertCommand.php, line 32

Class

AlertCommand
AJAX command for a javascript alert box.

Namespace

Drupal\Core\Ajax

Code

public function render() {

  return array(
    'command' => 'alert',
    'text' => $this->text,
  );
}
doc_Drupal
2016-10-29 08:44:07
Comments
Leave a Comment

Please login to continue.