From 4d8d91bca75f6bbd06256960bc67e043d84d1f52 Mon Sep 17 00:00:00 2001
From: Priti Kelaskar <33161-pritimhjn@users.noreply.drupalcode.org>
Date: Thu, 13 Mar 2025 12:58:40 +0000
Subject: [PATCH] Issue #3511788: Fix for ConfigFormBase::__construct() error

---
 src/Form/SchemaSettingsConfigForm.php | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/src/Form/SchemaSettingsConfigForm.php b/src/Form/SchemaSettingsConfigForm.php
index f45e6c7..d44da04 100644
--- a/src/Form/SchemaSettingsConfigForm.php
+++ b/src/Form/SchemaSettingsConfigForm.php
@@ -5,6 +5,7 @@ namespace Drupal\json_ld_schema_ui\Form;
 use Drupal\Core\Config\ConfigFactoryInterface;
 use Drupal\Core\Extension\ModuleHandlerInterface;
 use Drupal\Core\Form\ConfigFormBase;
+use Drupal\Core\Config\TypedConfigManagerInterface;
 use Drupal\Core\Form\FormStateInterface;
 use GuzzleHttp\ClientInterface;
 use Symfony\Component\DependencyInjection\ContainerInterface;
@@ -36,13 +37,15 @@ class SchemaSettingsConfigForm extends ConfigFormBase {
    *
    * @param \Drupal\Core\Config\ConfigFactoryInterface $config_factory
    *   The configuration factory.
+   * @param \Drupal\Core\Config\TypedConfigManagerInterface $typedConfigManager
+   *   The typed config manager.
    * @param \GuzzleHttp\ClientInterface $http_client
    *   The HTTP client.
    * @param \Drupal\Core\Extension\ModuleHandlerInterface $module_handler
    *   The module handler.
    */
-  public function __construct(ConfigFactoryInterface $config_factory, ClientInterface $http_client, ModuleHandlerInterface $module_handler) {
-    parent::__construct($config_factory);
+  public function __construct(ConfigFactoryInterface $config_factory, TypedConfigManagerInterface $typedConfigManager, ClientInterface $http_client, ModuleHandlerInterface $module_handler) {
+    parent::__construct($config_factory, $typedConfigManager);
 
     $this->httpClient = $http_client;
     $this->moduleHandler = $module_handler;
@@ -54,6 +57,7 @@ class SchemaSettingsConfigForm extends ConfigFormBase {
   public static function create(ContainerInterface $container) {
     return new static(
       $container->get('config.factory'),
+      $container->get('config.typed'),
       $container->get('http_client'),
       $container->get('module_handler')
     );
-- 
GitLab