Search for grantPermission

  1. Search 7.x for grantPermission
  2. Search 9.5.x for grantPermission
  3. Search 8.9.x for grantPermission
  4. Search 10.3.x for grantPermission
  5. Other projects
Title Object type File name Summary
PermissionsPerBundleTest::testGrantPermissionsOnOneBundleThenAll function core/tests/Drupal/KernelTests/Core/Recipe/PermissionsPerBundleTest.php Tests granting permissions for one bundle, then all of them.
PermissionsPerBundleTest::testGrantPermissionsPerBundle function core/tests/Drupal/KernelTests/Core/Recipe/PermissionsPerBundleTest.php Tests granting multiple bundle-specific permissions.
PermissionsPerBundleTest::testGrantPermissionsToAllBundlesExceptSome function core/tests/Drupal/KernelTests/Core/Recipe/PermissionsPerBundleTest.php Tests granting permissions for all bundles except certain ones.
ResourceTestBase::grantPermissionsToAnonymousRole function core/modules/rest/tests/src/Functional/ResourceTestBase.php Grants permissions to the anonymous role.
ResourceTestBase::grantPermissionsToAuthenticatedRole function core/modules/rest/tests/src/Functional/ResourceTestBase.php Grants permissions to the authenticated role.
ResourceTestBase::grantPermissionsToTestedRole function core/modules/jsonapi/tests/src/Functional/ResourceTestBase.php Grants permissions to the authenticated role.
ResourceTestBase::grantPermissionsToTestedRole function core/modules/rest/tests/src/Functional/ResourceTestBase.php Grants permissions to the tested role: anonymous or authenticated.
Role::grantPermission function core/modules/user/src/Entity/Role.php Grant permissions to the role.
RoleInterface::grantPermission function core/modules/user/src/RoleInterface.php Grant permissions to the role.
UserCreationTrait::grantPermissions function core/modules/user/tests/src/Traits/UserCreationTrait.php Grant permissions to a user role.

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