Deprecate user_roles() and user_role_names()

Created on 15 March 2023, almost 2 years ago
Updated 5 March 2024, 11 months ago

Problem/Motivation

Split from 📌 Deprecate user_role_grant_permissions() and user_role_revoke_permissions() Needs work .

Proposed resolution

- user_roles() can often be replaced with Role::loadMultiple()
- user_role_names() can be replaced with array_map() within result of Role::loadMultiple()

Remaining tasks

- review/commit

User interface changes

no

API changes

user_roles() and user_role_names() are deprecated without replacement

Data model changes

no

Release notes snippet

📌 Task
Status

Fixed

Version

11.0 🔥

Component
User module 

Last updated 8 days ago

Created by

🇬🇧United Kingdom alexpott 🇪🇺🌍

Live updates comments and jobs are added and updated live.
  • Security

    It is used for security vulnerabilities which do not need a security advisory. For example, security issues in projects which do not have security advisory coverage, or forward-porting a change already disclosed in a security advisory. See Drupal’s security advisory policy for details. Be careful publicly disclosing security vulnerabilities! Use the “Report a security vulnerability” link in the project page’s sidebar. See how to report a security issue for details.

Sign in to follow issues

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024