Drupal 8  8.0.2
CommandInterface Class Reference
Inheritance diagram for CommandInterface:

Public Member Functions

 render ()
 
 __construct ($selector)
 
 render ()
 

Protected Attributes

 $selector
 

Detailed Description

AJAX command interface.

All AJAX commands passed to AjaxResponse objects should implement these methods.

AJAX command for calling the jQuery remove() method.

The 'remove' command instructs the client to use jQuery's remove() method to remove each of elements matched by the given selector, and everything within them.

This command is implemented by Drupal.AjaxCommands.prototype.remove() defined in misc/ajax.js.

See Also
http://docs.jquery.com/Manipulation/remove#expr

Constructor & Destructor Documentation

__construct (   $selector)

Constructs a RemoveCommand object.

Parameters
string$selector

Member Function Documentation

render ( )

Return an array to be run through json_encode and sent to the client.

Referenced by AjaxResponse\addCommand().

Here is the caller graph for this function:

render ( )

Implements Drupal:render().


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