Problem/Motivation

Drupal 11 introduced changes in how ConfigFormBase is structured. The constructor now requires two arguments:

ArgumentCountError: Too few arguments to function Drupal\Core\Form\ConfigFormBase::__construct(), 1 passed in /var/www/html/docroot/modules/contrib/ymca_sync/src/Form/SettingsForm.php on line 49 and exactly 2 expected in Drupal\Core\Form\ConfigFormBase->__construct() (line 48 of core/lib/Drupal/Core/Form/ConfigFormBase.php).

Steps to reproduce

Try to access `/admin/config/system/ymca-sync`.

Proposed resolution

Include the new expected parameter ``

Remaining tasks

User interface changes

None.

API changes

None.

Data model changes

None.

CommentFileSizeAuthor
#2 3609993-drupal-11-changes.patch1.44 KBmauriciopieper

Issue fork ymca_sync-3609993

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

mauriciopieper created an issue. See original summary.

mauriciopieper’s picture

StatusFileSize
new1.44 KB
froboy’s picture

Status: Active » Needs work

@mauriciopieper if this patch is still valid, please create an issue fork and apply it to the current branch.

froboy’s picture

Version: 11.0.0 » 11.x-dev
Status: Needs work » Needs review

  • e25faea9 committed on 11.x
    Issue #3609993: Pass the typed config manager to ConfigFormBase in...
podarok’s picture

Version: 11.x-dev » 11.1.2
Status: Needs review » Fixed

tnx

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.