Skip to content
Snippets Groups Projects
Commit 15b01db7 authored by Rich Gerdes's avatar Rich Gerdes
Browse files

Issue #3289281 by Project Update Bot: Automated Drupal 10 compatibility fixes

parent 7ff45e24
No related branches found
No related tags found
No related merge requests found
name: Redirect Node
description: 'Provides a Drupal Node type that redirects to an external URL with viewed directly.'
core: 8.x
core_version_requirement: ^8 || ^9
core_version_requirement: ^8 || ^9 || ^10
type: module
dependencies:
- drupal:path
......@@ -2,13 +2,13 @@
namespace Drupal\redirect_node\EventSubscriber;
use Symfony\Component\HttpKernel\Event\RequestEvent;
use Drupal\Core\Entity\EntityTypeManagerInterface;
use Drupal\Core\Routing\TrustedRedirectResponse;
use Drupal\Core\Session\AccountProxy;
use Drupal\Core\Url;
use Drupal\node\NodeInterface;
use Symfony\Component\EventDispatcher\EventSubscriberInterface;
use Symfony\Component\HttpKernel\Event\GetResponseEvent;
use Symfony\Component\HttpKernel\KernelEvents;
/**
......@@ -63,10 +63,10 @@ class RedirectRedirectNodes implements EventSubscriberInterface {
/**
* Redirect requests for `redirect` nodes to their destination url.
*
* @param \Symfony\Component\HttpKernel\Event\GetResponseEvent $event
* @param \Symfony\Component\HttpKernel\Event\RequestEvent $event
* Event object of current event.
*/
public function redirect(GetResponseEvent $event) {
public function redirect(RequestEvent $event) {
$request = $event->getRequest();
// This is necessary because this also gets called on
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment