Search for getRoles

  1. Search 7.x for getRoles
  2. Search 9.5.x for getRoles
  3. Search 8.9.x for getRoles
  4. Search 11.x for getRoles
  5. Other projects
Title Object type File name Summary
AccountInterface::getRoles function core/lib/Drupal/Core/Session/AccountInterface.php Returns a list of roles.
AccountProxy::getRoles function core/lib/Drupal/Core/Session/AccountProxy.php
AnonymousUserSessionTest::testUserGetRoles function core/tests/Drupal/Tests/Core/Session/AnonymousUserSessionTest.php Tests the method getRoles exclude or include locked roles based in param.
User::getRoles function core/modules/user/src/Entity/User.php
User::getRoleStorage function core/modules/user/src/Entity/User.php Returns the role storage object.
UserPermissionsForm::getRoles function core/modules/user/src/Form/UserPermissionsForm.php Gets the roles to display in this form.
UserPermissionsRoleSpecificForm::getRoles function core/modules/user/src/Form/UserPermissionsRoleSpecificForm.php Gets the roles to display in this form.
UserSession::getRoles function core/lib/Drupal/Core/Session/UserSession.php
UserSession::getRoleStorage function core/lib/Drupal/Core/Session/UserSession.php Returns the role storage object.
UserSessionTest::testUserGetRoles function core/tests/Drupal/Tests/Core/Session/UserSessionTest.php Tests the method getRoles exclude or include locked roles based in param.
UserTest::testUserGetRoles function core/modules/user/tests/src/Unit/Plugin/Core/Entity/UserTest.php Tests the method getRoles exclude or include locked roles based in param.

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.