Drupal 11 compatibility

Created on 16 June 2025, 17 days ago

Problem/Motivation

This is what happens when the module is enabled in Drupal 11:


% ./vendor/bin/drush en keycloak_user_sync
PHP Fatal error:  Type of Drupal\keycloak_user_sync\Form\KeycloakUserSyncSettingsForm::$typedConfigManager must be Drupal\Core\Config\TypedConfigManagerInterface (as in class Drupal\Core\Form\ConfigFormBase) in [...]/keycloak_user_sync/src/Form/KeycloakUserSyncSettingsForm.php on line 17

Steps to reproduce

Proposed resolution

Luckily this is easy to fix. The $typedConfigManager property can be removed entirely. It only needs to be passed to the parent constructor, there is no need to keep a reference in KeycloakUserSyncSettingsForm.

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Active

Version

1.0

Component

Code

Created by

🇨🇭Switzerland znerol

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

Comments & Activities

Production build 0.71.5 2024