[Drupal 11] Fix Argument Count error

Created on 19 August 2024, 8 months ago
Updated 2 September 2024, 8 months ago

Problem/Motivation

When using Drupal 11, and accessing the config route (/admin/config/menu_link_attributes/config), the following error appears:

ArgumentCountError: Too few arguments to function Drupal\Core\Form\ConfigFormBase::__construct(), 1 passed in /var/www/html/web/modules/custom/menu_link_attributes/src/Form/ConfigForm.php on line 38 and exactly 2 expected in Drupal\Core\Form\ConfigFormBase->__construct() (line 43 of core/lib/Drupal/Core/Form/ConfigFormBase.php).

Steps to reproduce

Proposed resolution

Fix it.

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

🇩🇪Germany Grevil

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024