- Issue created by @enricpera
- 🇮🇳India Rajan Kumar@2026
Hi,
I have fixed issues to make the 'Webform User Registration' module compatible with Drupal 11 and created a patch. Attached are screenshots for reference. Thank you!
I've applied a patch to work with D11.
webform_user_registration.info.yml line 4
- core_version_requirement: ^9.1 || ^10
+ core_version_requirement: ^10 || ^11
src/Plugin/WebformHandler/UserRegistrationWebformHandler.php Line 168
- $roles = array_map(['\Drupal\Component\Utility\Html', 'escape'], user_role_names(TRUE));
+ $roles = Role::loadMultiple();
+ $roles = array_map(fn(RoleInterface $role) => $role->label(), $roles);
Now it works
Active
1.0
Code
Hi,
I have fixed issues to make the 'Webform User Registration' module compatible with Drupal 11 and created a patch. Attached are screenshots for reference. Thank you!