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

Breadcrumb

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

function InvokeCommand::render

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

Overrides CommandInterface::render

File

core/lib/Drupal/Core/Ajax/InvokeCommand.php, line 63

Class

InvokeCommand
AJAX command for invoking an arbitrary jQuery method.

Namespace

Drupal\Core\Ajax

Code

public function render() {
    return [
        'command' => 'invoke',
        'selector' => $this->selector,
        'method' => $this->method,
        'args' => $this->arguments,
    ];
}
RSS feed
Powered by Drupal