Search for hasRole
- Search 7.x for hasRole
- Search 9.5.x for hasRole
- Search 8.9.x for hasRole
- Search 10.3.x for hasRole
- Other projects
Title | Object type | File name | Summary |
---|---|---|---|
AccountProxy::hasRole | function | core/ |
Whether a user has a certain role. |
AccountProxyTest::testHasRole | function | core/ |
@covers ::hasRole |
User::hasRole | function | core/ |
Whether a user has a certain role. |
UserInterface::hasRole | function | core/ |
Whether a user has a certain role. |
UserSession::hasRole | function | core/ |
Whether a user has a certain role. |
UserSessionTest::testHasRole | function | core/ |
Tests the hasRole method. |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.