You are here

public function AjaxResponse::getCommands in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/lib/Drupal/Core/Ajax/AjaxResponse.php \Drupal\Core\Ajax\AjaxResponse::getCommands()

Gets all AJAX commands.

Return value

\Drupal\Core\Ajax\CommandInterface[] Returns all previously added AJAX commands.

File

core/lib/Drupal/Core/Ajax/AjaxResponse.php, line 69
Contains \Drupal\Core\Ajax\AjaxResponse.

Class

AjaxResponse
JSON response object for AJAX requests.

Namespace

Drupal\Core\Ajax

Code

public function &getCommands() {
  return $this->commands;
}