Search for role

  1. Search 7.x for role
  2. Search 9.5.x for role
  3. Search 8.9.x for role
  4. Search 10.3.x for role
  5. Other projects

Exact matches

These are exact matches according to your search
Title Object type File name Summary
Role class core/modules/user/src/Entity/Role.php Defines the user role entity class.
Role class core/modules/user/src/Plugin/views/access/Role.php Access plugin that provides role-based access control.
Role class core/modules/user/src/Plugin/migrate/source/d6/Role.php Drupal 6 role source from database.
Role class core/modules/user/src/Plugin/migrate/source/d7/Role.php Drupal 7 role source from database.

All search results

Title Object type File name Summary
MigrateUserRoleTest::assertMessages function core/modules/user/tests/src/Kernel/Migrate/d6/MigrateUserRoleTest.php Assert the logged migrate messages.
MigrateUserRoleTest::assertNoDuplicateRoles function core/modules/user/tests/src/Kernel/Migrate/d6/MigrateUserRoleTest.php Asserts there are no duplicate roles.
MigrateUserRoleTest::assertRole function core/modules/user/tests/src/Kernel/Migrate/d6/MigrateUserRoleTest.php Helper function to perform assertions on a user role.
MigrateUserRoleTest::assertRoles function core/modules/user/tests/src/Kernel/Migrate/d6/MigrateUserRoleTest.php Helper to assert the user roles.
MigrateUserRoleTest::providerTestUserRole function core/modules/user/tests/src/Kernel/Migrate/d6/MigrateUserRoleTest.php Data provider for user role migration tests.
MigrateUserRoleTest::setUp function core/modules/user/tests/src/Kernel/Migrate/d7/MigrateUserRoleTest.php
MigrateUserRoleTest::setUp function core/modules/user/tests/src/Kernel/Migrate/d6/MigrateUserRoleTest.php
MigrateUserRoleTest::testUserRole function core/modules/user/tests/src/Kernel/Migrate/d7/MigrateUserRoleTest.php Tests user role migration.
MigrateUserRoleTest::testUserRole function core/modules/user/tests/src/Kernel/Migrate/d6/MigrateUserRoleTest.php Tests user role migration.
node_post_update_add_rebuild_permission_to_roles function core/modules/node/node.post_update.php Grants a new permission for rebuilding node access permissions.
PageCacheTest::testPageCacheAnonymousRolePermissions function core/modules/page_cache/tests/src/Functional/PageCacheTest.php Tests the automatic presence of the anonymous role's cache tag.
Permissions::$roleStorage property core/modules/user/src/Plugin/views/field/Permissions.php The role storage.
PermissionsPerBundleTest::testActionIsOnlyAvailableToUserRoles function core/tests/Drupal/KernelTests/Core/Recipe/PermissionsPerBundleTest.php Tests that the permissions-per-bundle action can only be applied to roles.
RemoveRoleUser class core/modules/user/src/Plugin/Action/RemoveRoleUser.php Removes a role from a user.
RemoveRoleUser.php file core/modules/user/src/Plugin/Action/RemoveRoleUser.php
RemoveRoleUser::execute function core/modules/user/src/Plugin/Action/RemoveRoleUser.php Executes the plugin.
RemoveRoleUserTest class core/modules/user/tests/src/Unit/Plugin/Action/RemoveRoleUserTest.php Tests Drupal\user\Plugin\Action\RemoveRoleUser.
RemoveRoleUserTest.php file core/modules/user/tests/src/Unit/Plugin/Action/RemoveRoleUserTest.php
RemoveRoleUserTest::testExecuteRemoveExistingRole function core/modules/user/tests/src/Unit/Plugin/Action/RemoveRoleUserTest.php Tests the execute method on a user with a role.
RemoveRoleUserTest::testExecuteRemoveNonExistingRole function core/modules/user/tests/src/Unit/Plugin/Action/RemoveRoleUserTest.php Tests the execute method on a user without a specific role.
RendererTestBase::$currentUserRole property core/tests/Drupal/Tests/Core/Render/RendererTestBase.php The simulated "current" user role, for use in tests with cache contexts.
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/rest/tests/src/Functional/ResourceTestBase.php Grants permissions to the tested role: anonymous or authenticated.
ResourceTestBase::grantPermissionsToTestedRole function core/modules/jsonapi/tests/src/Functional/ResourceTestBase.php Grants permissions to the authenticated role.
ResourceTestBase::revokePermissionsFromTestedRole function core/modules/jsonapi/tests/src/Functional/ResourceTestBase.php Revokes permissions from the authenticated role.
Role class core/modules/user/src/Plugin/migrate/source/d6/Role.php Drupal 6 role source from database.
Role class core/modules/user/src/Entity/Role.php Defines the user role entity class.
Role class core/modules/user/src/Plugin/views/access/Role.php Access plugin that provides role-based access control.
Role class core/modules/user/src/Plugin/migrate/source/d7/Role.php Drupal 7 role source from database.
Role.php file core/modules/user/src/Plugin/migrate/source/d6/Role.php
Role.php file core/modules/user/src/Entity/Role.php
Role.php file core/modules/user/src/Plugin/views/access/Role.php
Role.php file core/modules/user/src/Plugin/migrate/source/d7/Role.php
Role::$filterPermissions property core/modules/user/src/Plugin/migrate/source/d6/Role.php List of filter IDs per role IDs.
Role::$id property core/modules/user/src/Entity/Role.php The machine name of this role.
Role::$is_admin property core/modules/user/src/Entity/Role.php An indicator whether the role has all permissions.
Role::$label property core/modules/user/src/Entity/Role.php The human-readable label of this role.
Role::$permissions property core/modules/user/src/Entity/Role.php The permissions belonging to this role.
Role::$roleStorage property core/modules/user/src/Plugin/views/access/Role.php The role storage.
Role::$usesOptions property core/modules/user/src/Plugin/views/access/Role.php Denotes whether the plugin has an additional options form.
Role::$weight property core/modules/user/src/Entity/Role.php The weight of this role in administrative listings.
Role::access function core/modules/user/src/Plugin/views/access/Role.php Determine if the current user has access or not.
Role::alterRouteDefinition function core/modules/user/src/Plugin/views/access/Role.php Allows access plugins to alter the route definition of a view.
Role::buildOptionsForm function core/modules/user/src/Plugin/views/access/Role.php Provide a form to edit options for this plugin.
Role::calculateDependencies function core/modules/user/src/Plugin/views/access/Role.php Calculates dependencies for the configured plugin.
Role::calculateDependencies function core/modules/user/src/Entity/Role.php Calculates dependencies and stores them in the dependency property.
Role::create function core/modules/user/src/Plugin/views/access/Role.php Instantiates a new instance of the implementing class using autowiring.
Role::defineOptions function core/modules/user/src/Plugin/views/access/Role.php Information about options for all kinds of purposes will be held here.
Role::fields function core/modules/user/src/Plugin/migrate/source/d6/Role.php Returns available fields on the source.

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