Problem/Motivation

In a Drupal 11 site, when editing the handler an error message appears :

Error : Call to undefined function Drupal\webform_user_registration\Plugin\WebformHandler\user_role_names() dans Drupal\webform_user_registration\Plugin\WebformHandler\UserRegistrationWebformHandler->buildConfigurationForm() (ligne 174 de web/modules/contrib/webform_user_registration/src/Plugin/WebformHandler/UserRegistrationWebformHandler.php).

Proposed resolution

Replace the function with its equivalents in Drupal 11, based on this change record :
https://www.drupal.org/node/3349759

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

christina_abboud created an issue. See original summary.

dkmishra made their first commit to this issue’s fork.

dkmishra’s picture

Status: Active » Needs review
vinodhini.e’s picture

Hi, Tested with Drupal 11.3.11 and issue is reproducible.

  • Applied MR !345
  • Handler configuration form works as expected after patch
  • Able to add and save handler without errors

Thanks!