Drupal 8  8.0.2
AlertCommand Class Reference
Inheritance diagram for AlertCommand:

Public Member Functions

 __construct ($text)
 
 render ()
 
- Public Member Functions inherited from CommandInterface
 render ()
 
 __construct ($selector)
 
 render ()
 

Protected Attributes

 $text
 
- Protected Attributes inherited from CommandInterface
 $selector
 

Detailed Description

AJAX command for a javascript alert box.

Constructor & Destructor Documentation

__construct (   $text)

Constructs an AlertCommand object.

Parameters
string$textThe text to be displayed in the alert box.

Member Function Documentation

render ( )

Implements Drupal:render().


The documentation for this class was generated from the following file: