public function JsRedirectCommand::render in JS Callback Handler 8.3
Implements \Drupal\Core\Ajax\CommandInterface:render().
Overrides CommandInterface::render
File
- src/
Ajax/ JsRedirectCommand.php, line 44
Class
- JsRedirectCommand
- Defines an AJAX command to set the window.location, loading that URL.
Namespace
Drupal\js\AjaxCode
public function render() {
return array(
'command' => 'redirect',
'force' => $this->force,
'url' => $this->url,
);
}