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
RemoveRoleUserTest class core/modules/user/tests/src/Unit/Plugin/Action/RemoveRoleUserTest.php @coversDefaultClass \Drupal\user\Plugin\Action\RemoveRoleUser
@group user
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.
RenderCacheTest::testUser1RolesContext function core/tests/Drupal/KernelTests/Core/Render/RenderCacheTest.php Tests that user 1 has a different roles context with the same roles.
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/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.
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/d6/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 Creates an instance of the plugin.
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.
Role::fields function core/modules/user/src/Plugin/migrate/source/d7/Role.php Returns available fields on the source.
Role::getAllValidPermissions function core/modules/user/src/Entity/Role.php Returns all valid permissions.
Role::getCacheContexts function core/modules/user/src/Plugin/views/access/Role.php The cache contexts associated with this object.
Role::getCacheMaxAge function core/modules/user/src/Plugin/views/access/Role.php The maximum age for which this object may be cached.
Role::getCacheTags function core/modules/user/src/Plugin/views/access/Role.php The cache tags associated with this object.
Role::getIds function core/modules/user/src/Plugin/migrate/source/d6/Role.php Defines the source fields uniquely identifying a source row.
Role::getIds function core/modules/user/src/Plugin/migrate/source/d7/Role.php Defines the source fields uniquely identifying a source row.
Role::getPermissions function core/modules/user/src/Entity/Role.php Returns a list of permissions assigned to the role.
Role::getWeight function core/modules/user/src/Entity/Role.php Returns the weight.
Role::grantPermission function core/modules/user/src/Entity/Role.php Grant permissions to the role.
Role::hasPermission function core/modules/user/src/Entity/Role.php Checks if the role has a permission.
Role::initializeIterator function core/modules/user/src/Plugin/migrate/source/d6/Role.php Initializes the iterator with the source data.
Role::isAdmin function core/modules/user/src/Entity/Role.php Indicates that a role has all available permissions.
Role::onDependencyRemoval function core/modules/user/src/Entity/Role.php Informs the entity that entities it depends on will be deleted.
Role::postLoad function core/modules/user/src/Entity/Role.php Acts on loaded entities.

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