RedirectDestinationTrait::setRedirectDestination

public 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;
}
doc_Drupal
2016-10-29 09:36:55
Comments
Leave a Comment

Please login to continue.