public function JsRedirectCommand::__construct in JS Callback Handler 8.3
Constructs an RedirectCommand object.
Parameters
string $url: The URL that will be loaded in the browser. This should be a full URL.
bool $force: Flag indicating whether redirection should be forced in the browser.
File
- src/
Ajax/ JsRedirectCommand.php, line 36
Class
- JsRedirectCommand
- Defines an AJAX command to set the window.location, loading that URL.
Namespace
Drupal\js\AjaxCode
public function __construct($url, $force = FALSE) {
$this->url = $url;
$this->force = $force;
}