Deprecated function user_role_names()

Created on 21 February 2024, 4 months ago
Updated 22 May 2024, about 1 month ago

Problem/Motivation

user_role_names() will be removed uin Drupal 11.

Steps to reproduce

phpstan
------ ------------------------------------------------------------------
Line src/Form/Settings.php
------ ------------------------------------------------------------------
302 Call to deprecated function user_role_names():
in drupal:10.2.0 and is removed from drupal:11.0.0. Use
\Drupal\user\Entity\Role::loadMultiple() and, if necessary, an
inline
implementation instead.
------ ------------------------------------------------------------------
[ERROR] Found 1 error

Proposed resolution

Replace with entityTypeManager.

Remaining tasks

User interface changes

API changes

Data model changes

πŸ“Œ Task
Status

Fixed

Version

2.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States bluegeek9

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

Merge Requests

Comments & Activities

Production build 0.69.0 2024