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; }
Please login to continue.