Drupal core update.
This commit is contained in:
21
web/behat.yml
Normal file
21
web/behat.yml
Normal 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/
|
||||
@@ -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(); */
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user