Compatible with drupal 11

Created on 11 October 2024, about 1 month ago

Problem/Motivation

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

🐛 Bug report
Status

Active

Version

1.0

Component

Code

Created by

🇪🇸Spain enricpera Barcelone

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

Comments & Activities

Production build 0.71.5 2024