You are here

public function InsertCommand::render in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/lib/Drupal/Core/Ajax/InsertCommand.php \Drupal\Core\Ajax\InsertCommand::render()

Implements Drupal\Core\Ajax\CommandInterface:render().

Overrides CommandInterface::render

6 methods override InsertCommand::render()
AfterCommand::render in core/lib/Drupal/Core/Ajax/AfterCommand.php
Implements Drupal\Core\Ajax\CommandInterface:render().
AppendCommand::render in core/lib/Drupal/Core/Ajax/AppendCommand.php
Implements Drupal\Core\Ajax\CommandInterface:render().
BeforeCommand::render in core/lib/Drupal/Core/Ajax/BeforeCommand.php
Implements Drupal\Core\Ajax\CommandInterface:render().
HtmlCommand::render in core/lib/Drupal/Core/Ajax/HtmlCommand.php
Implements Drupal\Core\Ajax\CommandInterface:render().
PrependCommand::render in core/lib/Drupal/Core/Ajax/PrependCommand.php
Implements Drupal\Core\Ajax\CommandInterface:render().

... See full list

File

core/lib/Drupal/Core/Ajax/InsertCommand.php, line 72
Contains \Drupal\Core\Ajax\InsertCommand.

Class

InsertCommand
Generic AJAX command for inserting content.

Namespace

Drupal\Core\Ajax

Code

public function render() {
  return array(
    'command' => 'insert',
    'method' => NULL,
    'selector' => $this->selector,
    'data' => $this
      ->getRenderedContent(),
    'settings' => $this->settings,
  );
}