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

Breadcrumb

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

function BaseCommand::render

Overrides CommandInterface::render

File

core/lib/Drupal/Core/Ajax/BaseCommand.php, line 40

Class

BaseCommand
Base command that only exists to simplify AJAX commands.

Namespace

Drupal\Core\Ajax

Code

public function render() {
    return [
        'command' => $this->command,
        'data' => $this->data,
    ];
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal