public function AfterCommand::render

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

Overrides InsertCommand::render

File

drupal/core/lib/Drupal/Core/Ajax/AfterCommand.php, line 29
Definition of Drupal\Core\Ajax\AfterCommand.

Class

AfterCommand
An AJAX command for calling the jQuery after() method.

Namespace

Drupal\Core\Ajax

Code

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