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
ContextualFiltersStringTest::$role1 property core/modules/views/tests/src/Functional/Plugin/ContextualFiltersStringTest.php Role id of role 1.
ContextualFiltersStringTest::$role2 property core/modules/views/tests/src/Functional/Plugin/ContextualFiltersStringTest.php Role id of role 2.
ContextualFiltersStringTest::testUserRoleContextualFilter function core/modules/views/tests/src/Functional/Plugin/ContextualFiltersStringTest.php Tests contextual filter for the user roles.
d6_user_role.yml file core/modules/user/migrations/d6_user_role.yml core/modules/user/migrations/d6_user_role.yml
d7_user_role.yml file core/modules/user/migrations/d7_user_role.yml core/modules/user/migrations/d7_user_role.yml
EntityListBuilderTest::$role property core/tests/Drupal/Tests/Core/Entity/EntityListBuilderTest.php The entity used to construct the EntityListBuilder.
EntityListBuilderTest::$roleStorage property core/tests/Drupal/Tests/Core/Entity/EntityListBuilderTest.php The role storage used for testing.
EntityOperationsTest::createRole function core/modules/system/tests/src/Functional/Entity/EntityOperationsTest.php
EntityReferenceFieldTest::assertUserRoleAutocreate function core/tests/Drupal/KernelTests/Core/Entity/EntityReferenceFieldTest.php Asserts that the setter callback performs autocreation for user roles.
EntityUserRole class core/modules/user/src/Plugin/migrate/destination/EntityUserRole.php Provides a destination plugin for migrating user role entities.
EntityUserRole.php file core/modules/user/src/Plugin/migrate/destination/EntityUserRole.php
EntityUserRole::$destinationPermissions property core/modules/user/src/Plugin/migrate/destination/EntityUserRole.php All permissions on the destination site.
EntityUserRole::create function core/modules/user/src/Plugin/migrate/destination/EntityUserRole.php Creates an instance of the plugin.
EntityUserRole::import function core/modules/user/src/Plugin/migrate/destination/EntityUserRole.php Import the row.
EntityUserRole::__construct function core/modules/user/src/Plugin/migrate/destination/EntityUserRole.php Builds a user role entity destination.
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_formats_by_role function core/modules/filter/filter.module Retrieves a list of text formats that are allowed for a given 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.
HandlerFieldRoleTest class core/modules/user/tests/src/Functional/Views/HandlerFieldRoleTest.php Tests the handler of the user: role field.
HandlerFieldRoleTest.php file core/modules/user/tests/src/Functional/Views/HandlerFieldRoleTest.php
HandlerFieldRoleTest::$defaultTheme property core/modules/user/tests/src/Functional/Views/HandlerFieldRoleTest.php The theme to install as the default for testing.
HandlerFieldRoleTest::$testViews property core/modules/user/tests/src/Functional/Views/HandlerFieldRoleTest.php Views used by this test.
HandlerFieldRoleTest::testRole function core/modules/user/tests/src/Functional/Views/HandlerFieldRoleTest.php
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.
LegacyUserTest::testUserRolePermissions function core/modules/user/tests/src/Kernel/LegacyUserTest.php Tests deprecation of user_role_permissions().
MigrateUserRoleTest class core/modules/user/tests/src/Kernel/Migrate/d7/MigrateUserRoleTest.php Upgrade user roles to user.role.*.yml.
MigrateUserRoleTest class core/modules/user/tests/src/Kernel/Migrate/d6/MigrateUserRoleTest.php Upgrade user roles to user.role.*.yml.
MigrateUserRoleTest.php file core/modules/user/tests/src/Kernel/Migrate/d7/MigrateUserRoleTest.php
MigrateUserRoleTest.php file core/modules/user/tests/src/Kernel/Migrate/d6/MigrateUserRoleTest.php
MigrateUserRoleTest::assertEntity function core/modules/user/tests/src/Kernel/Migrate/d7/MigrateUserRoleTest.php Asserts aspects of a user role config entity.
MigrateUserRoleTest::assertMessages function core/modules/user/tests/src/Kernel/Migrate/d6/MigrateUserRoleTest.php Assert the logged migrate messages.
MigrateUserRoleTest::assertNoDuplicateRoles function core/modules/user/tests/src/Kernel/Migrate/d6/MigrateUserRoleTest.php Asserts there are no duplicate roles.
MigrateUserRoleTest::assertRole function core/modules/user/tests/src/Kernel/Migrate/d6/MigrateUserRoleTest.php Helper function to perform assertions on a user role.
MigrateUserRoleTest::assertRoles function core/modules/user/tests/src/Kernel/Migrate/d6/MigrateUserRoleTest.php Helper to assert the user roles.
MigrateUserRoleTest::providerTestUserRole function core/modules/user/tests/src/Kernel/Migrate/d6/MigrateUserRoleTest.php Data provider for user role migration tests.
MigrateUserRoleTest::setUp function core/modules/user/tests/src/Kernel/Migrate/d7/MigrateUserRoleTest.php
MigrateUserRoleTest::setUp function core/modules/user/tests/src/Kernel/Migrate/d6/MigrateUserRoleTest.php
MigrateUserRoleTest::testUserRole function core/modules/user/tests/src/Kernel/Migrate/d7/MigrateUserRoleTest.php Tests user role migration.
MigrateUserRoleTest::testUserRole function core/modules/user/tests/src/Kernel/Migrate/d6/MigrateUserRoleTest.php Tests user role migration.
PageCacheTest::testPageCacheAnonymousRolePermissions function core/modules/page_cache/tests/src/Functional/PageCacheTest.php Tests the automatic presence of the anonymous role's cache tag.
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.
RemoveRoleUser class core/modules/user/src/Plugin/Action/RemoveRoleUser.php Removes a role from a user.
RemoveRoleUser.php file core/modules/user/src/Plugin/Action/RemoveRoleUser.php

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