From 7cec726e24e271a0995ddcef7baad9b4ad838c96 Mon Sep 17 00:00:00 2001 From: Kristen Pol Date: Sat, 2 Dec 2023 15:57:28 +1100 Subject: [PATCH] Removed metadata redirect route change. --- src/Routing/RouteSubscriber.php | 9 --------- 1 file changed, 9 deletions(-) diff --git a/src/Routing/RouteSubscriber.php b/src/Routing/RouteSubscriber.php index 9c2cc103..b5041881 100644 --- a/src/Routing/RouteSubscriber.php +++ b/src/Routing/RouteSubscriber.php @@ -19,15 +19,6 @@ public function alterRoutes(RouteCollection $collection) { if ($route = $collection->get('entity.node.canonical')) { $route->setDefault('_controller', '\Drupal\quant\Controller\QuantNodeViewController::view'); } - - // Hide metadata redirect route if redirect module isn't installed. - if ($route = $collection->get('quant.metadata_redirect')) { - if (!\Drupal::moduleHandler()->moduleExists('redirect')) { - // Note second parameter is a string. - $route->setRequirement('_access', 'FALSE'); - } - } - } }