Search for roles

  1. Search 7.x for roles
  2. Search 9.5.x for roles
  3. Search 10.3.x for roles
  4. Search 11.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.
cache_context.user.roles service core/core.services.yml Drupal\Core\Cache\Context\UserRolesCacheContext
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::assertRoles function core/modules/user/tests/src/Kernel/Migrate/d6/MigrateUserRoleTest.php Helper function to test the migration of the user roles. The user roles
will be re-imported and the tests here will be repeated.
Permissions::$roleStorage property core/modules/user/src/Plugin/views/field/Permissions.php The role storage.
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::$roleStorage property core/modules/user/src/Plugin/views/filter/Roles.php The role storage.
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 Calculates dependencies for the configured plugin.
Roles::create function core/modules/user/src/Plugin/views/filter/Roles.php Creates an instance of the plugin.
Roles::create function core/modules/user/src/Plugin/views/field/Roles.php Creates an instance of the plugin.
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 Child classes should be used to override this function and set the
'value options', unless 'options callback' is defined as a valid function
or static public method to generate these values.
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.
RolesRid class core/modules/user/src/Plugin/views/argument/RolesRid.php Allow role ID(s) as argument.
RolesRid.php file core/modules/user/src/Plugin/views/argument/RolesRid.php
RolesRid::$roleStorage property core/modules/user/src/Plugin/views/argument/RolesRid.php The role entity storage
RolesRid::create function core/modules/user/src/Plugin/views/argument/RolesRid.php Creates an instance of the plugin.
RolesRid::titleQuery function core/modules/user/src/Plugin/views/argument/RolesRid.php Override for specific title lookups.
RolesRid::__construct function core/modules/user/src/Plugin/views/argument/RolesRid.php Constructs a \Drupal\user\Plugin\views\argument\RolesRid object.
RolesRidArgumentTest class core/modules/user/tests/src/Functional/Views/RolesRidArgumentTest.php Tests the handler of the user: roles argument.
RolesRidArgumentTest.php file core/modules/user/tests/src/Functional/Views/RolesRidArgumentTest.php
RolesRidArgumentTest::$defaultTheme property core/modules/user/tests/src/Functional/Views/RolesRidArgumentTest.php The theme to install as the default for testing.
RolesRidArgumentTest::$testViews property core/modules/user/tests/src/Functional/Views/RolesRidArgumentTest.php Views used by this test.
RolesRidArgumentTest::testArgumentTitle function core/modules/user/tests/src/Functional/Views/RolesRidArgumentTest.php Tests the generated title of a user: roles argument.

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