Skip to content
Snippets Groups Projects

Drupal 11 compatibility

3 files
+ 57
8
Compare changes
  • Side-by-side
  • Inline
Files
3
@@ -2,6 +2,7 @@
@@ -2,6 +2,7 @@
namespace Drupal\conditional_404_pages\EventSubscriber;
namespace Drupal\conditional_404_pages\EventSubscriber;
 
use Symfony\Component\HttpKernel\Event\ExceptionEvent;
use Drupal\conditional_404_pages\Conditional404PageService;
use Drupal\conditional_404_pages\Conditional404PageService;
use Drupal\Core\Access\AccessManagerInterface;
use Drupal\Core\Access\AccessManagerInterface;
use Drupal\Core\Config\ConfigFactoryInterface;
use Drupal\Core\Config\ConfigFactoryInterface;
@@ -9,7 +10,6 @@ use Drupal\Core\EventSubscriber\CustomPageExceptionHtmlSubscriber;
@@ -9,7 +10,6 @@ use Drupal\Core\EventSubscriber\CustomPageExceptionHtmlSubscriber;
use Drupal\Core\Routing\RedirectDestinationInterface;
use Drupal\Core\Routing\RedirectDestinationInterface;
use Psr\Log\LoggerInterface;
use Psr\Log\LoggerInterface;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\HttpKernel\Event\GetResponseForExceptionEvent;
use Symfony\Component\HttpKernel\HttpKernelInterface;
use Symfony\Component\HttpKernel\HttpKernelInterface;
use Symfony\Component\Routing\Matcher\UrlMatcherInterface;
use Symfony\Component\Routing\Matcher\UrlMatcherInterface;
@@ -62,7 +62,7 @@ class ConditionalPageExceptionHtmlSubscriber extends CustomPageExceptionHtmlSubs
@@ -62,7 +62,7 @@ class ConditionalPageExceptionHtmlSubscriber extends CustomPageExceptionHtmlSubs
/**
/**
* {@inheritdoc}
* {@inheritdoc}
*/
*/
public function on404(GetResponseForExceptionEvent $event) {
public function on404(ExceptionEvent $event) {
$config_entities = $this->conditional404Service->getApplicableConfigEntities();
$config_entities = $this->conditional404Service->getApplicableConfigEntities();
if (!empty($config_entities)) {
if (!empty($config_entities)) {
Loading