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

21
web/behat.yml Normal file
View File

@@ -0,0 +1,21 @@
default:
suites:
default:
contexts:
- FeatureContext
- Drupal\DrupalExtension\Context\DrupalContext
- Drupal\DrupalExtension\Context\MinkContext
extensions:
DMore\ChromeExtension\Behat\ServiceContainer\ChromeExtension: ~
Behat\MinkExtension:
goutte: ~
base_url: https://dchadwick.ddev.site/
browser_name: chrome
javascript_session: default
browserkit_http: ~
files_path: "%paths.base%/media"
Drupal\DrupalExtension:
blackbox: ~
api_driver: drupal
drupal:
drupal_root: web/

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(); */
}
}
}