Move hasRole() method from UserInterface to AccountInterface

Created on 15 August 2021, over 3 years ago
Updated 25 April 2024, 11 months ago

Problem/Motivation

In πŸ“Œ Add hasRole() method to AccountProxy and UserSession classes Fixed we added hasRole() implementation to AccountProxy.php and UserSession.php classes. The AccountInterface remained unchanged to keep it compatible with existing contrib and custom AccountInterface implementations.

Proposed resolution

Move method hasRole() definition to AccountInterface.

Remaining tasks

  1. Wait for πŸ“Œ Add hasRole() method to AccountProxy and UserSession classes Fixed to land
  2. : https://www.drupal.org/node/3283218 β†’
  3. Reviews / refinements
  4. RTBC

API changes

AccountInterface has been extended with a new method - AccountInterface::hasRole().

πŸ“Œ Task
Status

Needs work

Version

11.0 πŸ”₯

Component
User systemΒ  β†’

Last updated about 21 hours ago

Created by

πŸ‡ΊπŸ‡¦Ukraine Matroskeen πŸ‡ΊπŸ‡¦ Ukraine, Lutsk

Live updates comments and jobs are added and updated live.
  • Needs release manager review

    It is used to alert the release manager core committer(s) that an issue significantly affects the overall technical debt or release timeline of Drupal, and their signoff is needed. See the governance policy draft for more information.

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