Error entering the configuration form-AjaxinSettingsForm.php

Created on 6 February 2025, 28 days ago

Problem/Motivation

Error entering the module configuration form.

Steps to reproduce

Core: Drupal 11.1.1
install Blazy: composer require 'drupal/blazy:^3.0'
install module: composer require 'drupal/ajaxin:^2.0'

Proposed resolution

I solved it this way.
Add the parameters requested by the constructor that this class extends (ConfigFormBase) and add the parameter in the creation method.

 public function __construct(ConfigFactoryInterface $config_factory, AjaxinInterface $ajaxin, TypedConfigManagerInterface $typed_config_manager) {
    parent::__construct($config_factory, $typed_config_manager);
    $this->ajaxin = $ajaxin;
  }

public static function create(ContainerInterface $container) {
    return new static(
      $container->get('config.factory'),
      $container->get('ajaxin'),
      $container->get('config.typed')

    );
  }

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Active

Version

2.0

Component

Code

Created by

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024