You are here

public function InsertCommand::render in Drupal 10

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

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

1 method overrides InsertCommand::render()
AppendCommand::render in core/lib/Drupal/Core/Ajax/AppendCommand.php
Implements Drupal\Core\Ajax\CommandInterface:render().

File

core/lib/Drupal/Core/Ajax/InsertCommand.php, line 67

Class

InsertCommand
Generic AJAX command for inserting content.

Namespace

Drupal\Core\Ajax

Code

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