function RedirectDestinationTrait::setRedirectDestination
Same name in other branches
- 9 core/lib/Drupal/Core/Routing/RedirectDestinationTrait.php \Drupal\Core\Routing\RedirectDestinationTrait::setRedirectDestination()
- 8.9.x core/lib/Drupal/Core/Routing/RedirectDestinationTrait.php \Drupal\Core\Routing\RedirectDestinationTrait::setRedirectDestination()
- 11.x core/lib/Drupal/Core/Routing/RedirectDestinationTrait.php \Drupal\Core\Routing\RedirectDestinationTrait::setRedirectDestination()
Sets the redirect destination service.
Parameters
\Drupal\Core\Routing\RedirectDestinationInterface $redirect_destination: The redirect destination service.
Return value
$this
File
-
core/
lib/ Drupal/ Core/ Routing/ RedirectDestinationTrait.php, line 61
Class
- RedirectDestinationTrait
- Wrapper methods for the Redirect Destination.
Namespace
Drupal\Core\RoutingCode
public function setRedirectDestination(RedirectDestinationInterface $redirect_destination) {
$this->redirectDestination = $redirect_destination;
return $this;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.