Drupal 11 - Update Code -

Created on 29 August 2024, 3 months ago

Problem/Motivation

Upgrading code to use with Drupal 11 and I see this...

Call to deprecated function user_roles(). Deprecated 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.

Steps to reproduce

Proposed resolution

Replacing the user_roles() with Drupal\user\Entity\Role::loadMultiple()

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Needs review

Version

2.0

Component

Code

Created by

πŸ‡΅πŸ‡°Pakistan TanvirAhmad

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024