class RedirectCommand implements CommandInterface (View source)

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

Properties

protected string $url

The URL that will be loaded into window.location.

Methods

__construct(string $url)

Constructs an RedirectCommand object.

render()

Implements \Drupal\Core\Ajax\CommandInterface:render().

Details

__construct(string $url)

Constructs an RedirectCommand object.

Parameters

string $url

The URL that will be loaded into window.location. This should be a full URL.

render()

Implements \Drupal\Core\Ajax\CommandInterface:render().