10.2.0 Deprecation Clenaup

Created on 3 January 2024, 6 months ago
Updated 18 January 2024, 5 months ago

Problem/Motivation

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.

Uses:
8.x-1.x:

src/Form/SettingsForm.php: '#options' => array_map('\Drupal\Component\Utility\Html::escape', user_role_names(TRUE)),
tests/src/Functional/TfaLoginTest.php: $roles = user_role_names(TRUE);

2.x:
tests/src/Functional/TfaLoginTest.php: $roles = user_role_names(TRUE);

Steps to reproduce

PHPStan with D10.2.0

Proposed resolution

Cleanup deprecation

Remaining tasks

User interface changes

None

API changes

None

Data model changes

None

πŸ“Œ Task
Status

Fixed

Version

2.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States cmlara

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