3 namespace Drupal\Core\Ajax;
6 * Defines an AJAX command to set the window.location, loading that URL.
10 class RedirectCommand implements CommandInterface {
13 * The URL that will be loaded into window.location.
20 * Constructs an RedirectCommand object.
23 * The URL that will be loaded into window.location. This should be a full
26 public function __construct($url) {
31 * Implements \Drupal\Core\Ajax\CommandInterface:render().
33 public function render() {
35 'command' => 'redirect',