← all change records

#3002289 Added AccountProxy::hasRole() and UserSession::hasRole() methods

released Target 10.1.x Published 2022-11-20
#2991232 #3228209

Generated 2026-05-12 08:43 UTC

Rules (2)

signature 2
from
to
\Drupal\Core\Session\AccountProxy::hasRole
  • arity ≥ 0
\Drupal\Core\Session\UserSession::hasRole
  • arity ≥ 0

Affected contrib projects (75)

Project legacy in_flight migrated no_match installs files adopters
devel 0 0 2 0 137,334 0 1
rules 0 0 4 0 84,336 0 6
feeds 0 0 2 0 76,617 0 1
password_policy 0 0 2 0 55,944 0 1
role_delegation 0 0 2 0 51,329 0 1
openid_connect 0 0 2 2 27,988 0 2
cas 0 0 4 0 23,321 0 2
reroute_email 0 0 6 0 18,805 0 2
eca 0 0 6 0 15,522 0 1
roleassign 0 0 2 0 13,764 0 1
userprotect 0 0 2 0 13,587 0 2
ai 0 0 8 0 13,284 0 1
acsf 0 0 2 0 11,824 0 1
nodeaccess 0 0 2 0 9,659 0 1
og 0 0 4 0 8,347 0 9
authorization 0 0 2 0 6,994 0 2
social_auth 0 0 6 0 5,260 0 3
front 0 0 2 0 4,945 0 1
bamboo_twig 0 0 2 0 3,419 0 1
modal_page 0 0 6 0 3,035 0 3
commerce_license 0 0 2 0 2,598 0 3
role_expire 0 0 2 0 2,303 0 4
crazyegg 0 0 2 0 1,852 0 1
block_inactive_users 0 0 2 0 1,500 0 1
miniorange_oauth_client 0 0 2 2 946 0 1
miniorange_2fa 0 0 4 0 683 0 1
simple_user_management 0 0 2 0 568 0 2
user_email_verification 0 0 2 0 563 0 1
opigno_moxtra 0 0 2 0 535 0 5
cms_content_sync 0 0 2 0 468 0 1
graphql_core_schema 0 0 2 0 384 0 1
session_management 0 0 4 0 378 0 1
o365 0 0 2 2 341 0 1
eca_helper 0 0 4 0 314 0 1
access_policy 0 0 4 0 255 0 2
email_login_otp 0 0 2 0 190 0 1
social_auth_entra_id 0 0 4 0 172 0 1
workflow_notifications 0 0 2 0 156 0 1
stop_admin 0 0 2 0 116 0 1
tether_stats 0 0 2 0 93 0 1
bootbase 0 0 2 0 88 0 1
commerce_pickup 0 0 2 0 81 0 4
mcp_tools 0 0 4 0 81 0 1
layout_builder_sections_access 0 0 2 0 67 0 1
questions_answers 0 0 2 0 57 0 2
intercept 0 0 2 0 52 0 1
crm 0 0 2 0 48 0 1
wb_universe 0 0 4 0 47 0 1
decoupled_auth 0 0 4 0 42 0 1
oauth_server_sso 0 0 2 0 41 0 1
really_simple_google_tag 0 0 2 0 26 0 1
content_translation_access 0 0 2 0 25 0 1
bee_hotel 0 0 4 0 22 0 2
quantcdn 0 0 2 4 18 0 1
cmrf_user_sync 0 0 2 0 17 0 1
contacts 0 0 2 0 15 0 12
user_update_notify 0 0 2 0 15 0 1
mail_box_management 0 0 2 0 14 0 1
metatag_user_role 0 0 2 0 14 0 2
user_reference_invite 0 0 4 0 13 0 2
crowd 0 0 2 0 12 0 4
group_member_import 0 0 2 0 12 0 2
user_inactivity_revoke_roles 0 0 2 0 12 0 2
webtrees 0 0 4 0 12 0 1
user_referral 0 0 2 0 11 0 1
recurly_roles 0 0 2 0 10 0 1
group_member_role 0 0 2 0 9 0 2
commerce_license_content 0 0 2 0 7 0 1
social_course 0 0 6 0 7 0 2
og_migrate 0 0 2 0 5 0 2
entrasync 0 0 2 0 4 0 1
ewelink 0 0 2 2 4 0 1
gamify 0 0 2 2 4 0 1
conreg 0 0 2 0 2 0 2
vereinonline_auth 0 0 2 0 2 0 1