Search for roles

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

Exact matches

These are exact matches according to your search
Title Object type File name Summary
Roles class core/modules/user/src/Plugin/views/field/Roles.php Field handler to provide a list of roles.
Roles class core/modules/user/src/Plugin/views/filter/Roles.php Filter handler for user roles.

All search results

Title Object type File name Summary
AccountInterface::getRoles function core/lib/Drupal/Core/Session/AccountInterface.php Returns a list of roles.
AccountProxy::getRoles function core/lib/Drupal/Core/Session/AccountProxy.php Returns a list of roles.
AccountSettingsForm::$roleStorage property core/modules/user/src/AccountSettingsForm.php The role storage used when changing the admin role.
AnonymousUserSessionTest::testUserGetRoles function core/tests/Drupal/Tests/Core/Session/AnonymousUserSessionTest.php Tests the method getRoles exclude or include locked roles based in param.
CacheContextOptimizationTest::testUserRolesCacheContextOptimization function core/tests/Drupal/KernelTests/Core/Cache/CacheContextOptimizationTest.php Ensures that 'user.roles' still works when it is optimized away.
EntityListBuilderTest::$roleStorage property core/tests/Drupal/Tests/Core/Entity/EntityListBuilderTest.php The role storage used for testing.
FilterDefaultConfigTest::testUpdateRoles function core/modules/filter/tests/src/Kernel/FilterDefaultConfigTest.php Tests that changes to FilterFormat::$roles do not have an effect.
FilterFormat::$roles property core/modules/filter/src/Entity/FilterFormat.php List of user role IDs to grant access to use this format on initial creation.
FilterFormatAccessTest::testFormatRoles function core/modules/filter/tests/src/Functional/FilterFormatAccessTest.php Tests if text format is available to a role.
filter_get_roles_by_format function core/modules/filter/filter.module Retrieves a list of roles that are allowed to use a given text format.
HandlerFilterRolesTest class core/modules/user/tests/src/Kernel/Views/HandlerFilterRolesTest.php Tests the roles filter handler.
HandlerFilterRolesTest.php file core/modules/user/tests/src/Kernel/Views/HandlerFilterRolesTest.php
HandlerFilterRolesTest::$testViews property core/modules/user/tests/src/Kernel/Views/HandlerFilterRolesTest.php Views used by this test.
HandlerFilterRolesTest::testDependencies function core/modules/user/tests/src/Kernel/Views/HandlerFilterRolesTest.php Tests that role filter dependencies are calculated correctly.
HandlerFilterRolesTest::testMissingRole function core/modules/user/tests/src/Kernel/Views/HandlerFilterRolesTest.php Tests that a warning is triggered if the filter references a missing role.
MigrateUserRoleTest::assertNoDuplicateRoles function core/modules/user/tests/src/Kernel/Migrate/d6/MigrateUserRoleTest.php Asserts there are no duplicate roles.
MigrateUserRoleTest::assertRoles function core/modules/user/tests/src/Kernel/Migrate/d6/MigrateUserRoleTest.php Helper to assert the user roles.
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.
RenderCacheTest::testUser1RolesContext function core/tests/Drupal/KernelTests/Core/Render/RenderCacheTest.php Tests that user 1 has a different roles context with the same roles.
Role::$roleStorage property core/modules/user/src/Plugin/views/access/Role.php The role storage.
Roles class core/modules/user/src/Plugin/views/field/Roles.php Field handler to provide a list of roles.
Roles class core/modules/user/src/Plugin/views/filter/Roles.php Filter handler for user roles.
Roles.php file core/modules/user/src/Plugin/views/field/Roles.php
Roles.php file core/modules/user/src/Plugin/views/filter/Roles.php
Roles::$database property core/modules/user/src/Plugin/views/field/Roles.php Database Service Object.
Roles::addSelfTokens function core/modules/user/src/Plugin/views/field/Roles.php Add any special tokens this field might use for itself.
Roles::calculateDependencies function core/modules/user/src/Plugin/views/filter/Roles.php
Roles::create function core/modules/user/src/Plugin/views/field/Roles.php Creates an instance of the plugin.
Roles::create function core/modules/user/src/Plugin/views/filter/Roles.php
Roles::documentSelfTokens function core/modules/user/src/Plugin/views/field/Roles.php Document any special tokens this field might use for itself.
Roles::getValueOptions function core/modules/user/src/Plugin/views/filter/Roles.php
Roles::init function core/modules/user/src/Plugin/views/field/Roles.php Initialize the plugin.
Roles::operators function core/modules/user/src/Plugin/views/filter/Roles.php Override empty and not empty operator labels to be clearer for user roles.
Roles::preRender function core/modules/user/src/Plugin/views/field/Roles.php Runs before any fields are rendered.
Roles::query function core/modules/user/src/Plugin/views/field/Roles.php Called to add the field to a query.
Roles::render_item function core/modules/user/src/Plugin/views/field/Roles.php Renders a single item of a row.
Roles::__construct function core/modules/user/src/Plugin/views/field/Roles.php Constructs a \Drupal\user\Plugin\views\field\Roles object.
Roles::__construct function core/modules/user/src/Plugin/views/filter/Roles.php Constructs a Roles object.
RoleSettingsForm class core/modules/user/src/Form/RoleSettingsForm.php Configure administrator role settings for this site.
RoleSettingsForm.php file core/modules/user/src/Form/RoleSettingsForm.php
RoleSettingsForm::$roleStorage property core/modules/user/src/Form/RoleSettingsForm.php The role storage used when changing the admin role.
RoleSettingsForm::buildForm function core/modules/user/src/Form/RoleSettingsForm.php Form constructor.
RoleSettingsForm::create function core/modules/user/src/Form/RoleSettingsForm.php Instantiates a new instance of this class.
RoleSettingsForm::getFormId function core/modules/user/src/Form/RoleSettingsForm.php Returns a unique string identifying the form.
RoleSettingsForm::submitForm function core/modules/user/src/Form/RoleSettingsForm.php Form submission handler.
RoleSettingsForm::__construct function core/modules/user/src/Form/RoleSettingsForm.php Constructs a \Drupal\user\Form\RoleSettingsForm object.
RolesLookup class core/modules/block/src/Plugin/migrate/process/RolesLookup.php Gets the destination roles ID for an array of source roles IDs.
RolesLookup.php file core/modules/block/src/Plugin/migrate/process/RolesLookup.php
RolesLookup::$migrateLookup property core/modules/block/src/Plugin/migrate/process/RolesLookup.php The migrate lookup service.

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