Search for role

  1. Search 7.x for role
  2. Search 9.5.x for role
  3. Search 10.3.x for role
  4. Search 11.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
RoleXmlBasicAuthTest::$auth property core/modules/user/tests/src/Functional/Rest/RoleXmlBasicAuthTest.php The authentication mechanism to use in this test.
RoleXmlBasicAuthTest::$defaultTheme property core/modules/user/tests/src/Functional/Rest/RoleXmlBasicAuthTest.php The theme to install as the default for testing.
RoleXmlBasicAuthTest::$format property core/modules/user/tests/src/Functional/Rest/RoleXmlBasicAuthTest.php The format to use in this test.
RoleXmlBasicAuthTest::$mimeType property core/modules/user/tests/src/Functional/Rest/RoleXmlBasicAuthTest.php The MIME type that corresponds to $format.
RoleXmlBasicAuthTest::$modules property core/modules/user/tests/src/Functional/Rest/RoleXmlBasicAuthTest.php Modules to install.
RoleXmlCookieTest class core/modules/user/tests/src/Functional/Rest/RoleXmlCookieTest.php @group rest
RoleXmlCookieTest.php file core/modules/user/tests/src/Functional/Rest/RoleXmlCookieTest.php
RoleXmlCookieTest::$auth property core/modules/user/tests/src/Functional/Rest/RoleXmlCookieTest.php The authentication mechanism to use in this test.
RoleXmlCookieTest::$defaultTheme property core/modules/user/tests/src/Functional/Rest/RoleXmlCookieTest.php The theme to install as the default for testing.
RoleXmlCookieTest::$format property core/modules/user/tests/src/Functional/Rest/RoleXmlCookieTest.php The format to use in this test.
RoleXmlCookieTest::$mimeType property core/modules/user/tests/src/Functional/Rest/RoleXmlCookieTest.php The MIME type that corresponds to $format.
SearchCommentTest::$adminRole property core/modules/search/tests/src/Functional/SearchCommentTest.php ID for the administrator role.
SearchCommentTest::setRolePermissions function core/modules/search/tests/src/Functional/SearchCommentTest.php Set permissions for role.
Secure::$roles property core/tests/Drupal/Tests/Component/Annotation/Doctrine/Fixtures/Annotation/Secure.php
ToolbarAdminMenuTest::testUserRoleUpdateSubtreesHashCacheClear function core/modules/toolbar/tests/src/Functional/ToolbarAdminMenuTest.php Exercises the toolbar_user_role_update() and toolbar_user_update() hook
implementations.
User accounts, permissions, and roles group core/core.api.php API for user accounts, access checking, roles, and permissions.
user.new_role.html.twig file core/modules/help_topics/help_topics/user.new_role.html.twig ---
label: 'Adding a new role'
related:
- user.overview
- user.permissions
---
{% set roles_url = render_var(url('entity.user_role.collection')) %}
<h2>{% trans %}Goal{% endtrans %}</h2>
<p>{% trans %}Create a…
user.role.administrator.yml file core/profiles/standard/config/install/user.role.administrator.yml core/profiles/standard/config/install/user.role.administrator.yml
user.role.administrator.yml file core/profiles/demo_umami/config/install/user.role.administrator.yml core/profiles/demo_umami/config/install/user.role.administrator.yml
user.role.anonymous.yml file core/profiles/standard/config/install/user.role.anonymous.yml core/profiles/standard/config/install/user.role.anonymous.yml
user.role.anonymous.yml file core/profiles/demo_umami/config/install/user.role.anonymous.yml core/profiles/demo_umami/config/install/user.role.anonymous.yml
user.role.anonymous.yml file core/modules/user/config/install/user.role.anonymous.yml core/modules/user/config/install/user.role.anonymous.yml
user.role.authenticated.yml file core/profiles/standard/config/install/user.role.authenticated.yml core/profiles/standard/config/install/user.role.authenticated.yml
user.role.authenticated.yml file core/profiles/testing_config_overrides/config/install/user.role.authenticated.yml core/profiles/testing_config_overrides/config/install/user.role.authenticated.yml
user.role.authenticated.yml file core/profiles/demo_umami/config/install/user.role.authenticated.yml core/profiles/demo_umami/config/install/user.role.authenticated.yml
user.role.authenticated.yml file core/modules/user/config/install/user.role.authenticated.yml core/modules/user/config/install/user.role.authenticated.yml
user.role.author.yml file core/profiles/demo_umami/config/install/user.role.author.yml core/profiles/demo_umami/config/install/user.role.author.yml
user.role.editor.yml file core/profiles/demo_umami/config/install/user.role.editor.yml core/profiles/demo_umami/config/install/user.role.editor.yml
User::addRole function core/modules/user/src/Entity/User.php Add a role to a user.
User::getRoles function core/modules/user/src/Entity/User.php Returns a list of roles.
User::getRoleStorage function core/modules/user/src/Entity/User.php Returns the role storage object.
User::hasRole function core/modules/user/src/Entity/User.php Whether a user has a certain role.
User::removeRole function core/modules/user/src/Entity/User.php Remove a role from a user.
UserCreationTrait::createAdminRole function core/modules/user/tests/src/Traits/UserCreationTrait.php Creates an administrative role.
UserCreationTrait::createRole function core/modules/user/tests/src/Traits/UserCreationTrait.php Creates a role with specified permissions.
UserEntityReferenceTest::$role1 property core/modules/user/tests/src/Kernel/UserEntityReferenceTest.php A randomly-generated role for testing purposes.
UserEntityReferenceTest::$role2 property core/modules/user/tests/src/Kernel/UserEntityReferenceTest.php A randomly-generated role for testing purposes.
UserEntityReferenceTest::testUserSelectionByRole function core/modules/user/tests/src/Kernel/UserEntityReferenceTest.php Tests user selection by roles.
UserInterface::addRole function core/modules/user/src/UserInterface.php Add a role to a user.
UserInterface::hasRole function core/modules/user/src/UserInterface.php Whether a user has a certain role.
UserInterface::removeRole function core/modules/user/src/UserInterface.php Remove a role from a user.
UserKernelTestBase::$roleStorage property core/modules/user/tests/src/Kernel/Views/UserKernelTestBase.php The entity storage for roles.
UserPermissionsForm::$roleStorage property core/modules/user/src/Form/UserPermissionsForm.php The role storage.
UserPermissionsForm::getRoles function core/modules/user/src/Form/UserPermissionsForm.php Gets the roles to display in this form.
UserPermissionsRoleSpecificForm class core/modules/user/src/Form/UserPermissionsRoleSpecificForm.php Provides the user permissions administration form for a specific role.
UserPermissionsRoleSpecificForm.php file core/modules/user/src/Form/UserPermissionsRoleSpecificForm.php
UserPermissionsRoleSpecificForm::$userRole property core/modules/user/src/Form/UserPermissionsRoleSpecificForm.php The specific role for this form.
UserPermissionsRoleSpecificForm::buildForm function core/modules/user/src/Form/UserPermissionsRoleSpecificForm.php Builds the user permissions administration form for a specific role.
UserPermissionsRoleSpecificForm::getRoles function core/modules/user/src/Form/UserPermissionsRoleSpecificForm.php Gets the roles to display in this form.
UserPermissionsTest::testAdministratorRole function core/modules/user/tests/src/Functional/UserPermissionsTest.php Test assigning of permissions for the administrator role.

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