RedirectDestination::__construct

public RedirectDestination::__construct(RequestStack $request_stack, UrlGeneratorInterface $url_generator)

Constructs a new RedirectDestination instance.

Parameters

\Symfony\Component\HttpFoundation\RequestStack $request_stack: The request stack.

\Drupal\Core\Routing\UrlGeneratorInterface $url_generator: The URL generator.

File

core/lib/Drupal/Core/Routing/RedirectDestination.php, line 42

Class

RedirectDestination
Provides helpers for redirect destinations.

Namespace

Drupal\Core\Routing

Code

public function __construct(RequestStack $request_stack, UrlGeneratorInterface $url_generator) {
  $this->requestStack = $request_stack;
  $this->urlGenerator = $url_generator;
}
doc_Drupal
2016-10-29 09:36:53
Comments
Leave a Comment

Please login to continue.