user_roles() is Deprecated

Created on 28 February 2024, 4 months ago

Problem/Motivation

user_roles is 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.

Proposed resolution

Use Role::loadMultiple() instead of user_roles() in src/Plugin/Block/LanguageDropdownBlock.php

🐛 Bug report
Status

Needs review

Version

2.1

Component

Code

Created by

🇮🇳India MukhtarM

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

Comments & Activities

Production build 0.69.0 2024