public function RedirectCommand::__construct

public RedirectCommand::__construct($url)

Constructs an RedirectCommand object.

Parameters

string $url: The URL that will be loaded into window.location. This should be a full URL.

File

core/lib/Drupal/Core/Ajax/RedirectCommand.php, line 26

Class

RedirectCommand
Defines an AJAX command to set the window.location, loading that URL.

Namespace

Drupal\Core\Ajax

Code

public function __construct($url) {
  $this->url = $url;
}

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Ajax!RedirectCommand.php/function/RedirectCommand::__construct/8.1.x