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

Breadcrumb

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

function AjaxResponse::getCommands

Gets all AJAX commands.

Return value

array Returns render arrays for all previously added commands.

File

core/lib/Drupal/Core/Ajax/AjaxResponse.php, line 64

Class

AjaxResponse
JSON response object for AJAX requests.

Namespace

Drupal\Core\Ajax

Code

public function &getCommands() {
    return $this->commands;
}
RSS feed
Powered by Drupal