3 namespace Drupal\Core\Ajax;
6 * AJAX command for calling the jQuery html() method.
8 * The 'insert/html' command instructs the client to use jQuery's html() method
9 * to set the HTML content of each element matched by the given selector while
10 * leaving the outer tags intact.
12 * This command is implemented by Drupal.AjaxCommands.prototype.insert()
13 * defined in misc/ajax.js.
15 * @see http://docs.jquery.com/Attributes/html#val
19 class HtmlCommand extends InsertCommand {
22 * Implements Drupal\Core\Ajax\CommandInterface:render().
24 public function render() {
27 'command' => 'insert',
29 'selector' => $this->selector,
30 'data' => $this->getRenderedContent(),
31 'settings' => $this->settings,