access_policy.user_roles |
service |
core/core.services.yml |
Drupal\Core\Session\UserRolesAccessPolicy |
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 |
|
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 |
Drupal\Core\Session\UserRolesAccessPolicy |
service |
core/core.services.yml |
|
EntityListBuilderTest::$roleStorage |
property |
core/tests/Drupal/Tests/Core/Entity/EntityListBuilderTest.php |
The role storage used for testing. |
file_post_update_add_permissions_to_roles |
function |
core/modules/file/file.post_update.php |
Grant all non-anonymous roles the 'delete own files' permission. |
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. |
help_post_update_add_permissions_to_roles |
function |
core/modules/help/help.post_update.php |
Grant all admin roles the 'access help pages' permission. |
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 |
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/filter/Roles.php |
Constructs a Roles object. |
Roles::__construct |
function |
core/modules/user/src/Plugin/views/field/Roles.php |
Constructs a \Drupal\user\Plugin\views\field\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. |