class InsertCommand

Generic AJAX command for inserting content.

This command instructs the client to insert the given HTML using whichever jQuery DOM manipulation method has been specified in the #ajax['method'] variable of the element that triggered the request.

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

Hierarchy

Expanded class hierarchy of InsertCommand

7 files declare their use of InsertCommand

File

drupal/core/lib/Drupal/Core/Ajax/InsertCommand.php, line 22
Definition of Drupal\Core\Ajax\InsertCommand.

Namespace

Drupal\Core\Ajax
View source

Members

Namesort descending Modifiers Type Description Overrides
InsertCommand::$html protected property The HTML content that will replace the matched element(s).
InsertCommand::$selector protected property A CSS selector string.
InsertCommand::$settings protected property A settings array to be passed to any any attached JavaScript behavior.
InsertCommand::render public function Implements Drupal\Core\Ajax\CommandInterface:render(). Overrides CommandInterface::render 6
InsertCommand::__construct public function Constructs an InsertCommand object.