public function RedirectDestination::set in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/lib/Drupal/Core/Routing/RedirectDestination.php \Drupal\Core\Routing\RedirectDestination::set()
Sets the destination as URL.
This method should be used really rarely, for example views uses it, in order to override all destination calls in all of its rendering.
Parameters
string $new_destination: The new destination.
Return value
$this
Overrides RedirectDestinationInterface::set
File
- core/
lib/ Drupal/ Core/ Routing/ RedirectDestination.php, line 82 - Contains \Drupal\Core\Routing\RedirectDestination.
Class
- RedirectDestination
- Provides helpers for redirect destinations.
Namespace
Drupal\Core\RoutingCode
public function set($new_destination) {
$this->destination = $new_destination;
return $this;
}