8.5.x RedirectDestinationTrait.php RedirectDestinationTrait::setRedirectDestination(RedirectDestinationInterface $redirect_destination)
8.0.x RedirectDestinationTrait.php RedirectDestinationTrait::setRedirectDestination(RedirectDestinationInterface $redirect_destination)
8.1.x RedirectDestinationTrait.php RedirectDestinationTrait::setRedirectDestination(RedirectDestinationInterface $redirect_destination)
8.2.x RedirectDestinationTrait.php RedirectDestinationTrait::setRedirectDestination(RedirectDestinationInterface $redirect_destination)
8.3.x RedirectDestinationTrait.php RedirectDestinationTrait::setRedirectDestination(RedirectDestinationInterface $redirect_destination)
8.4.x RedirectDestinationTrait.php RedirectDestinationTrait::setRedirectDestination(RedirectDestinationInterface $redirect_destination)
8.6.x RedirectDestinationTrait.php RedirectDestinationTrait::setRedirectDestination(RedirectDestinationInterface $redirect_destination)

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\Routing

Code

public function setRedirectDestination(RedirectDestinationInterface $redirect_destination) {
  $this->redirectDestination = $redirect_destination;
  return $this;
}