Search for hasPermission
- Search 7.x for hasPermission
- Search 9.5.x for hasPermission
- Search 10.3.x for hasPermission
- Search 11.x for hasPermission
- Other projects
Title | Object type | File name | Summary |
---|---|---|---|
AccessResult::allowedIfHasPermission | function | core/ |
Creates an allowed access result if the permission is present, neutral otherwise. |
AccessResult::allowedIfHasPermissions | function | core/ |
Creates an allowed access result if the permissions are present, neutral otherwise. |
AccessResultTest::providerTestAllowedIfHasPermissions | function | core/ |
Provides data for the testAllowedIfHasPermissions() method. |
AccessResultTest::testAllowedIfHasPermissions | function | core/ |
Tests allowedIfHasPermissions(). |
AccountInterface::hasPermission | function | core/ |
Checks whether a user has a certain permission. |
AccountProxy::hasPermission | function | core/ |
Checks whether a user has a certain permission. |
Role::hasPermission | function | core/ |
Checks if the role has a permission. |
RoleInterface::hasPermission | function | core/ |
Checks if the role has a permission. |
User::hasPermission | function | core/ |
Checks whether a user has a certain permission. |
UserSession::hasPermission | function | core/ |
Checks whether a user has a certain permission. |
UserSessionTest::providerTestHasPermission | function | core/ |
Provides test data for getHasPermission(). |
UserSessionTest::testHasPermission | function | core/ |
Tests the has permission method. |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.