Drupal core update.

This commit is contained in:
Dan Chadwick
2024-09-07 14:04:34 -04:00
parent 025c63e1dd
commit 57da5fed63
8 changed files with 1796 additions and 174 deletions

View File

@@ -5,7 +5,8 @@ namespace Drupal\nodepath_access\EventSubscriber;
use Symfony\Component\HttpKernel\KernelEvents;
use Symfony\Component\HttpKernel\Event\RequestEvent;
use Symfony\Component\EventDispatcher\EventSubscriberInterface;
use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
use Symfony\Component\HttpKernel\Exception\AccessDeniedHttpException;
/**
* Class EntityTypeSubscriber.
@@ -38,7 +39,7 @@ class KernelRequestNodePathCheck implements EventSubscriberInterface {
$current_request = \Drupal::requestStack()->getCurrentRequest();
$path = \Drupal::request()->getRequestUri();
if (str_contains($path, '/node/')) {
return new NotFoundHttpException();
/* throw new AccessDeniedHttpException(); */
}
}
}