120 files declare their use of Role
- AccountForm.php in core/
modules/ user/ src/ AccountForm.php - AddPermissionsUpdateTest.php in core/
modules/ help/ tests/ src/ Functional/ AddPermissionsUpdateTest.php - BasicAuthTest.php in core/
modules/ basic_auth/ tests/ src/ Functional/ BasicAuthTest.php - BlockContentAccessHandlerTest.php in core/
modules/ block_content/ tests/ src/ Kernel/ BlockContentAccessHandlerTest.php - BlockTest.php in core/
modules/ block/ tests/ src/ Functional/ BlockTest.php - block_content.post_update.php in core/
modules/ block_content/ block_content.post_update.php - Post update functions for Content Block.
- BrowserTestBaseTest.php in core/
tests/ Drupal/ FunctionalTests/ BrowserTestBaseTest.php - BulkFormTest.php in core/
modules/ user/ tests/ src/ Functional/ Views/ BulkFormTest.php - CacheContextOptimizationTest.php in core/
tests/ Drupal/ KernelTests/ Core/ Cache/ CacheContextOptimizationTest.php - ChangeUserRoleBase.php in core/
modules/ user/ src/ Plugin/ Action/ ChangeUserRoleBase.php - CommentAdminViewTest.php in core/
modules/ comment/ tests/ src/ Kernel/ Views/ CommentAdminViewTest.php - CommentCacheTagsTest.php in core/
modules/ comment/ tests/ src/ Functional/ CommentCacheTagsTest.php - CommentFieldAccessTest.php in core/
modules/ comment/ tests/ src/ Kernel/ CommentFieldAccessTest.php - CommentUserNameTest.php in core/
modules/ comment/ tests/ src/ Kernel/ Views/ CommentUserNameTest.php - CommentViewsKernelTestBase.php in core/
modules/ comment/ tests/ src/ Kernel/ Views/ CommentViewsKernelTestBase.php - ConfigAccessTest.php in core/
modules/ settings_tray/ tests/ src/ FunctionalJavascript/ ConfigAccessTest.php - ConfigDraggableListBuilderTest.php in core/
modules/ config/ tests/ src/ Functional/ ConfigDraggableListBuilderTest.php - ConfigInstallProfileOverrideTest.php in core/
modules/ config/ tests/ src/ Functional/ ConfigInstallProfileOverrideTest.php - ContentModerationAccessTest.php in core/
modules/ content_moderation/ tests/ src/ Kernel/ ContentModerationAccessTest.php - ContentTranslationEnableTest.php in core/
modules/ content_translation/ tests/ src/ Functional/ ContentTranslationEnableTest.php - ContentTranslationOperationsTest.php in core/
modules/ content_translation/ tests/ src/ Functional/ ContentTranslationOperationsTest.php - ContextualLinksTest.php in core/
modules/ contextual/ tests/ src/ FunctionalJavascript/ ContextualLinksTest.php - DefaultViewsTest.php in core/
modules/ views_ui/ tests/ src/ Functional/ DefaultViewsTest.php - EditorPrivateFileReferenceFilterTest.php in core/
modules/ editor/ tests/ src/ Functional/ EditorPrivateFileReferenceFilterTest.php - EntityAutocompleteElementFormTest.php in core/
tests/ Drupal/ KernelTests/ Core/ Entity/ Element/ EntityAutocompleteElementFormTest.php - EntityCacheTagsTestBase.php in core/
modules/ system/ tests/ src/ Functional/ Entity/ EntityCacheTagsTestBase.php - EntityDisplayTest.php in core/
modules/ field_ui/ tests/ src/ Kernel/ EntityDisplayTest.php - EntityOperationsTest.php in core/
modules/ system/ tests/ src/ Functional/ Entity/ EntityOperationsTest.php - EntityReferenceFieldTest.php in core/
tests/ Drupal/ KernelTests/ Core/ Entity/ EntityReferenceFieldTest.php - EntityReferenceFormatterTest.php in core/
modules/ field/ tests/ src/ Kernel/ EntityReference/ EntityReferenceFormatterTest.php - EntityReferenceWidgetTest.php in core/
modules/ media_library/ tests/ src/ FunctionalJavascript/ EntityReferenceWidgetTest.php - EntityResourceTest.php in core/
modules/ jsonapi/ tests/ src/ Kernel/ Controller/ EntityResourceTest.php - EntityViewBuilderTest.php in core/
tests/ Drupal/ KernelTests/ Core/ Entity/ EntityViewBuilderTest.php - ExternalNormalizersTest.php in core/
modules/ jsonapi/ tests/ src/ Functional/ ExternalNormalizersTest.php - FieldEntityLinkTest.php in core/
modules/ views/ tests/ src/ Kernel/ Handler/ FieldEntityLinkTest.php - FieldFieldAccessTestBase.php in core/
modules/ views/ tests/ src/ Kernel/ Handler/ FieldFieldAccessTestBase.php - FieldRenderedEntityTest.php in core/
modules/ views/ tests/ src/ Kernel/ Handler/ FieldRenderedEntityTest.php - FileAddPermissionsUpdateTest.php in core/
modules/ file/ tests/ src/ Functional/ FileAddPermissionsUpdateTest.php - FileItemTest.php in core/
modules/ file/ tests/ src/ Kernel/ FileItemTest.php - FileListingTest.php in core/
modules/ file/ tests/ src/ Functional/ FileListingTest.php - FileUploadTest.php in core/
modules/ jsonapi/ tests/ src/ Kernel/ Controller/ FileUploadTest.php - filter.module in core/
modules/ filter/ filter.module - Framework for handling the filtering of content.
- FilterAdminTest.php in core/
modules/ filter/ tests/ src/ Functional/ FilterAdminTest.php - FilterFormat.php in core/
modules/ filter/ src/ Entity/ FilterFormat.php - FilterFormatAccessTest.php in core/
modules/ filter/ tests/ src/ Functional/ FilterFormatAccessTest.php - FilterFormatFormBase.php in core/
modules/ filter/ src/ FilterFormatFormBase.php - FilterPluginBase.php in core/
modules/ views/ src/ Plugin/ views/ filter/ FilterPluginBase.php - HandlerFilterRolesTest.php in core/
modules/ user/ tests/ src/ Kernel/ Views/ HandlerFilterRolesTest.php - ImageItemTest.php in core/
modules/ image/ tests/ src/ Kernel/ ImageItemTest.php - JsonApiDocumentTopLevelNormalizerTest.php in core/
modules/ jsonapi/ tests/ src/ Kernel/ Normalizer/ JsonApiDocumentTopLevelNormalizerTest.php - JsonApiFunctionalMultilingualTest.php in core/
modules/ jsonapi/ tests/ src/ Functional/ JsonApiFunctionalMultilingualTest.php - JsonApiFunctionalTestBase.php in core/
modules/ jsonapi/ tests/ src/ Functional/ JsonApiFunctionalTestBase.php - JsonApiRegressionTest.php in core/
modules/ jsonapi/ tests/ src/ Functional/ JsonApiRegressionTest.php - KernelTestBaseTest.php in core/
tests/ Drupal/ KernelTests/ KernelTestBaseTest.php - LayoutBuilderOverridesEditingThemeTest.php in core/
modules/ layout_builder/ tests/ src/ Functional/ LayoutBuilderOverridesEditingThemeTest.php - LegacyUserTest.php in core/
modules/ user/ tests/ src/ Kernel/ LegacyUserTest.php - MediaAccessTest.php in core/
modules/ media/ tests/ src/ Functional/ MediaAccessTest.php - MediaCreationTest.php in core/
modules/ media/ tests/ src/ Kernel/ MediaCreationTest.php - MediaOverviewPageTest.php in core/
modules/ media/ tests/ src/ Functional/ MediaOverviewPageTest.php - MediaResourceTestBase.php in core/
modules/ media/ tests/ src/ Functional/ Rest/ MediaResourceTestBase.php - MediaRevisionTest.php in core/
modules/ media/ tests/ src/ Functional/ MediaRevisionTest.php - MediaSourceImageTest.php in core/
modules/ media/ tests/ src/ FunctionalJavascript/ MediaSourceImageTest.php - MediaSourceOEmbedVideoTest.php in core/
modules/ media/ tests/ src/ FunctionalJavascript/ MediaSourceOEmbedVideoTest.php - MediaTest.php in core/
modules/ ckeditor5/ tests/ src/ FunctionalJavascript/ MediaTest.php - MigrateEntityContentValidationTest.php in core/
modules/ migrate/ tests/ src/ Kernel/ MigrateEntityContentValidationTest.php - MigrateUserRoleTest.php in core/
modules/ user/ tests/ src/ Kernel/ Migrate/ d6/ MigrateUserRoleTest.php - MigrateUserRoleTest.php in core/
modules/ user/ tests/ src/ Kernel/ Migrate/ d7/ MigrateUserRoleTest.php - ModerationStateTestBase.php in core/
modules/ content_moderation/ tests/ src/ Functional/ ModerationStateTestBase.php - node.views.inc in core/
modules/ node/ node.views.inc - Provide views data for node.module.
- NodePreviewAnonymousTest.php in core/
modules/ node/ tests/ src/ Functional/ NodePreviewAnonymousTest.php - NodeTranslationUITest.php in core/
modules/ node/ tests/ src/ Functional/ NodeTranslationUITest.php - OverriddenConfigurationTest.php in core/
modules/ settings_tray/ tests/ src/ FunctionalJavascript/ OverriddenConfigurationTest.php - PageCacheTagsIntegrationTest.php in core/
modules/ page_cache/ tests/ src/ Functional/ PageCacheTagsIntegrationTest.php - PathElementFormTest.php in core/
tests/ Drupal/ KernelTests/ Core/ Element/ PathElementFormTest.php - Permissions.php in core/
modules/ user/ src/ Plugin/ views/ filter/ Permissions.php - PermissionsPerBundleTest.php in core/
tests/ Drupal/ KernelTests/ Core/ Recipe/ PermissionsPerBundleTest.php - ResourceTest.php in core/
modules/ rest/ tests/ src/ Functional/ ResourceTest.php - ResourceTestBase.php in core/
modules/ jsonapi/ tests/ src/ Functional/ ResourceTestBase.php - ResourceTestBase.php in core/
modules/ rest/ tests/ src/ Functional/ ResourceTestBase.php - RoleResourceTestBase.php in core/
modules/ user/ tests/ src/ Functional/ Rest/ RoleResourceTestBase.php - Roles.php in core/
modules/ user/ src/ Plugin/ views/ field/ Roles.php - RolesRidTest.php in core/
modules/ user/ tests/ src/ Unit/ Views/ Argument/ RolesRidTest.php - RoleTest.php in core/
modules/ jsonapi/ tests/ src/ Functional/ RoleTest.php - RoleValidationTest.php in core/
modules/ user/ tests/ src/ Kernel/ RoleValidationTest.php - RouteProviderTest.php in core/
tests/ Drupal/ KernelTests/ Core/ Entity/ RouteProviderTest.php - SettingsTrayBlockFormTest.php in core/
modules/ settings_tray/ tests/ src/ FunctionalJavascript/ SettingsTrayBlockFormTest.php - ShortcutCacheTagsTest.php in core/
modules/ shortcut/ tests/ src/ Functional/ ShortcutCacheTagsTest.php - StandardTestTrait.php in core/
profiles/ standard/ tests/ src/ Traits/ StandardTestTrait.php - StatisticsLoggingTest.php in core/
modules/ statistics/ tests/ src/ FunctionalJavascript/ StatisticsLoggingTest.php - TaxonomyTermViewTest.php in core/
modules/ taxonomy/ tests/ src/ Functional/ Views/ TaxonomyTermViewTest.php - TemporaryJsonapiFileFieldUploaderTest.php in core/
modules/ jsonapi/ tests/ src/ Kernel/ Controller/ TemporaryJsonapiFileFieldUploaderTest.php - TestPageTestController.php in core/
modules/ system/ tests/ modules/ test_page_test/ src/ Controller/ TestPageTestController.php - TextFormatElementFormTest.php in core/
modules/ filter/ tests/ src/ Kernel/ TextFormatElementFormTest.php - ToolbarAdminMenuTest.php in core/
modules/ toolbar/ tests/ src/ Functional/ ToolbarAdminMenuTest.php - TourCacheTagsTest.php in core/
modules/ tour/ tests/ src/ Functional/ TourCacheTagsTest.php - UninstallTest.php in core/
modules/ system/ tests/ src/ Functional/ Module/ UninstallTest.php - UrlIntegrationTest.php in core/
tests/ Drupal/ KernelTests/ Core/ Routing/ UrlIntegrationTest.php - user.module in core/
modules/ user/ user.module - Enables the user registration and login system.
- User.php in core/
modules/ user/ src/ Plugin/ views/ argument_validator/ User.php - user.post_update.php in core/
modules/ user/ user.post_update.php - Post update functions for User module.
- UserActionConfigSchemaTest.php in core/
modules/ user/ tests/ src/ Kernel/ UserActionConfigSchemaTest.php - UserCacheTagsTest.php in core/
modules/ user/ tests/ src/ Functional/ UserCacheTagsTest.php - UserCreationTrait.php in core/
modules/ user/ tests/ src/ Traits/ UserCreationTrait.php - UserEntityReferenceTest.php in core/
modules/ user/ tests/ src/ Kernel/ UserEntityReferenceTest.php - UserListBuilder.php in core/
modules/ user/ src/ UserListBuilder.php - UserPermissionsAdminTest.php in core/
modules/ user/ tests/ src/ Functional/ UserPermissionsAdminTest.php - UserPermissionsTest.php in core/
modules/ user/ tests/ src/ Functional/ UserPermissionsTest.php - UserRole.php in core/
modules/ user/ src/ Plugin/ Condition/ UserRole.php - UserRoleAdminTest.php in core/
modules/ user/ tests/ src/ Functional/ UserRoleAdminTest.php - UserRoleConditionTest.php in core/
modules/ user/ tests/ src/ Kernel/ Condition/ UserRoleConditionTest.php - UserRoleDeleteTest.php in core/
modules/ user/ tests/ src/ Kernel/ UserRoleDeleteTest.php - UserRoleEntityTest.php in core/
modules/ user/ tests/ src/ Kernel/ UserRoleEntityTest.php - UserRoleTest.php in core/
modules/ user/ tests/ src/ Kernel/ Views/ UserRoleTest.php - UserSelection.php in core/
modules/ user/ src/ Plugin/ EntityReferenceSelection/ UserSelection.php - UserUpdateRoleMigrateTest.php in core/
modules/ user/ tests/ src/ Functional/ Update/ UserUpdateRoleMigrateTest.php - UserValidationTest.php in core/
modules/ user/ tests/ src/ Kernel/ UserValidationTest.php - ValidReferenceConstraintValidatorTest.php in core/
tests/ Drupal/ KernelTests/ Core/ Entity/ ValidReferenceConstraintValidatorTest.php - ViewsConfigDependenciesIntegrationTest.php in core/
modules/ views/ tests/ src/ Kernel/ ViewsConfigDependenciesIntegrationTest.php - WidgetAccessTest.php in core/
modules/ media_library/ tests/ src/ FunctionalJavascript/ WidgetAccessTest.php - WidgetAnonymousTest.php in core/
modules/ media_library/ tests/ src/ FunctionalJavascript/ WidgetAnonymousTest.php
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.