You are here

public function AjaxPageControllerBase::getCommands in Forena Reports 8

Get the AJAX commands to return to the blroser.

Return value

array Array of commands to return.

1 call to AjaxPageControllerBase::getCommands()
AjaxPageControllerBase::response in src/Controller/AjaxPageControllerBase.php
Return the response based on ajax pramters.

File

src/Controller/AjaxPageControllerBase.php, line 372

Class

AjaxPageControllerBase

Namespace

Drupal\forena\Controller

Code

public function getCommands() {
  $commands = $this->commands;
  if (!empty($this->endCommand)) {
    $commands[] = $this->endCommand;
  }
  $this->commands = [];
  return $commands;
}