public function AjaxPageControllerBase::setUrl in Forena Reports 8
Set the url for the controller, including current parameters.
Parameters
string $action: The relative action to set
string $title: The browser title.
array|NULL $parms: Parmaters. If null speicificied then use the parms properties of the cotnroller.
File
- src/
Controller/ AjaxPageControllerBase.php, line 592
Class
Namespace
Drupal\forena\ControllerCode
public function setUrl($action, $title = NULL, $parms = NULL) {
$query = "";
if ($parms === NULL) {
$parms = $this->parms;
}
if ($parms) {
unset($parms['form_id']);
$query = http_build_query($parms);
}
if ($query) {
$action .= "?{$query}";
}
$this->endCommand = new InvokeCommand('html', 'forenaAjaxChangeUrl', [
$action,
$title,
]);
}