function RedirectDestinationInterface::set

Same name in other branches
  1. 8.9.x core/lib/Drupal/Core/Routing/RedirectDestinationInterface.php \Drupal\Core\Routing\RedirectDestinationInterface::set()
  2. 10 core/lib/Drupal/Core/Routing/RedirectDestinationInterface.php \Drupal\Core\Routing\RedirectDestinationInterface::set()
  3. 11.x core/lib/Drupal/Core/Routing/RedirectDestinationInterface.php \Drupal\Core\Routing\RedirectDestinationInterface::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

1 method overrides RedirectDestinationInterface::set()
RedirectDestination::set in core/lib/Drupal/Core/Routing/RedirectDestination.php
Sets the destination as URL.

File

core/lib/Drupal/Core/Routing/RedirectDestinationInterface.php, line 55

Class

RedirectDestinationInterface
Provides an interface for redirect destinations.

Namespace

Drupal\Core\Routing

Code

public function set($new_destination);

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.