RedirectCommand
class RedirectCommand
Defines an AJAX command to set the window.location, loading that URL.
Hierarchy
- class \Drupal\Core\Ajax\RedirectCommand implements CommandInterface
Related topics
- Ajax API
- Overview for Drupal's Ajax API.
File
- core/lib/Drupal/Core/Ajax/RedirectCommand.php, line 10
Namespace
Drupal\Core\AjaxMembers
Name | Modifiers | Type | Description |
---|---|---|---|
RedirectCommand::$url | protected | property | The URL that will be loaded into window.location. |
RedirectCommand::render | public | function | Implements \Drupal\Core\Ajax\CommandInterface:render(). Overrides CommandInterface::render |
RedirectCommand::__construct | public | function | Constructs an RedirectCommand object. |
© 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/class/RedirectCommand/8.1.x