From d967724fa817329c5eddd2c747a75b3cba480151 Mon Sep 17 00:00:00 2001
From: Jon Minder <jonathan.minder@liip.ch>
Date: Thu, 30 Jan 2025 15:44:58 +0100
Subject: [PATCH] Drupal 11 compatibility fix

---
 src/Form/SettingsForm.php | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/src/Form/SettingsForm.php b/src/Form/SettingsForm.php
index f547df2..13e13b4 100644
--- a/src/Form/SettingsForm.php
+++ b/src/Form/SettingsForm.php
@@ -5,6 +5,7 @@ declare(strict_types=1);
 namespace Drupal\frontend_routing\Form;
 
 use Drupal\Core\Config\ConfigFactoryInterface;
+use Drupal\Core\Config\TypedConfigManagerInterface;
 use Drupal\Core\Entity\EntityTypeBundleInfoInterface;
 use Drupal\Core\Entity\EntityTypeManagerInterface;
 use Drupal\Core\Form\ConfigFormBase;
@@ -28,8 +29,9 @@ final class SettingsForm extends ConfigFormBase {
     protected EntityTypeManagerInterface $entityTypeManager,
     protected EntityTypeBundleInfoInterface $entityTypeBundleInfo,
     protected AliasStorageHelperInterface $aliasStorageHelper,
+    protected TypedConfigManagerInterface $typedConfigManager,
   ) {
-    parent::__construct($config_factory);
+    parent::__construct($config_factory, $typedConfigManager);
   }
 
   /**
@@ -42,6 +44,7 @@ final class SettingsForm extends ConfigFormBase {
       $container->get('entity_type.manager'),
       $container->get('entity_type.bundle.info'),
       $container->get('pathauto.alias_storage_helper'),
+      $container->get('config.typed'),
     );
   }
 
@@ -324,6 +327,7 @@ final class SettingsForm extends ConfigFormBase {
    * Get Node bundles.
    *
    * @return array
+   *   List of node bundles.
    */
   private function getNodeTypes() {
     $list = [];
-- 
GitLab