Drupal 8  8.0.2
ReplaceCommand Class Reference
Inheritance diagram for ReplaceCommand:

Public Member Functions

 render ()
 
- Public Member Functions inherited from InsertCommand
 __construct ($selector, $content, array $settings=NULL)
 
 render ()
 
- Public Member Functions inherited from CommandInterface
 render ()
 
 __construct ($selector)
 
 render ()
 
- Public Member Functions inherited from CommandWithAttachedAssetsInterface
 getAttachedAssets ()
 

Additional Inherited Members

- Protected Attributes inherited from InsertCommand
 $selector
 
 $content
 
 $settings
 
- Protected Attributes inherited from CommandInterface
 $selector
 

Detailed Description

AJAX command for calling the jQuery replace() method.

The 'insert/replaceWith' command instructs the client to use jQuery's replaceWith() method to replace each element matched matched by the given selector with the given HTML.

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

See jQuery replaceWith command

Member Function Documentation

render ( )

Implements Drupal:render().


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