Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. InsertCommand.php

function 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 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,
    ];
}
RSS feed
Powered by Drupal