[Drupal 11] Fix Argument Count error

Issue information

From user: grevil

Related to !19 (merged)

Contribution record

Fork management

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

Edited by drupalbot
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information