Search for roles

  1. Search 7.x for roles
  2. Search 8.9.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 to assert the user roles.
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/filter/Roles.php
Roles.php file core/modules/user/src/Plugin/views/field/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/field/Roles.php Creates an instance of the plugin.
Roles::create function core/modules/user/src/Plugin/views/filter/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 Gets the value options.
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.
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.

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