Search for role

  1. Search 7.x for role
  2. Search 8.9.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
RoleUserTestBase class core/modules/user/tests/src/Unit/Plugin/Action/RoleUserTestBase.php Provides a base class for user role action tests.
RoleUserTestBase.php file core/modules/user/tests/src/Unit/Plugin/Action/RoleUserTestBase.php
RoleUserTestBase::$account property core/modules/user/tests/src/Unit/Plugin/Action/RoleUserTestBase.php The mocked account.
RoleUserTestBase::$userRoleEntityType property core/modules/user/tests/src/Unit/Plugin/Action/RoleUserTestBase.php The user role entity type.
RoleUserTestBase::setUp function core/modules/user/tests/src/Unit/Plugin/Action/RoleUserTestBase.php
RoleXmlAnonTest class core/modules/user/tests/src/Functional/Rest/RoleXmlAnonTest.php @group rest
RoleXmlAnonTest.php file core/modules/user/tests/src/Functional/Rest/RoleXmlAnonTest.php
RoleXmlAnonTest::$defaultTheme property core/modules/user/tests/src/Functional/Rest/RoleXmlAnonTest.php The theme to install as the default for testing.
RoleXmlAnonTest::$format property core/modules/user/tests/src/Functional/Rest/RoleXmlAnonTest.php The format to use in this test.
RoleXmlAnonTest::$mimeType property core/modules/user/tests/src/Functional/Rest/RoleXmlAnonTest.php The MIME type that corresponds to $format.
RoleXmlBasicAuthTest class core/modules/user/tests/src/Functional/Rest/RoleXmlBasicAuthTest.php @group rest
RoleXmlBasicAuthTest.php file core/modules/user/tests/src/Functional/Rest/RoleXmlBasicAuthTest.php
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 Tests Toolbar's responses to user data updates.
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.content_editor.yml file core/profiles/standard/config/install/user.role.content_editor.yml core/profiles/standard/config/install/user.role.content_editor.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.

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