public function AjaxResponse::getCommands in Drupal 9
Same name and namespace in other branches
- 8 core/lib/Drupal/Core/Ajax/AjaxResponse.php \Drupal\Core\Ajax\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\AjaxCode
public function &getCommands() {
return $this->commands;
}