- Issue created by @erier
I was able to replicate the error on a clean install of D11.2.3, but I could not get the patch to apply.
Deprecated function 'user_roles()' in D11.
When attempting to access /admin/config/social-api/social-auth/roles
, the page won't load because the `user_roles()` function has been deprecated.
I have to apologize as i don't know how to contribute a patch.
In SocialAuthRolesSettingsForm.php
, fix the reference to user_roles()
with the following:
$role_storage = \Drupal::entityTypeManager()->getStorage('user_role');
$roles = $role_storage->loadMultiple();
foreach ($roles as $user_role_id => $user_role_name) {
...
Active
2.0
Code
I was able to replicate the error on a clean install of D11.2.3, but I could not get the patch to apply.