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
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.content_editor.yml file core/recipes/content_editor_role/config/user.role.content_editor.yml core/recipes/content_editor_role/config/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.
UserEntityReferenceTest::testUserSelectionByRole function core/modules/user/tests/src/Kernel/UserEntityReferenceTest.php Tests user selection by roles.
UserHooks::userRoleDelete function core/modules/user/src/Hook/UserHooks.php Implements hook_ENTITY_TYPE_delete() for user_role entities.
UserHooks::userRoleInsert function core/modules/user/src/Hook/UserHooks.php Implements hook_ENTITY_TYPE_insert() for user_role entities.
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 Tests assigning of permissions for the administrator role.
UserPermissionsTest::testUserRoleChangePermissions function core/modules/user/tests/src/Functional/UserPermissionsTest.php Verify proper permission changes by user_role_change_permissions().
UserRole class core/modules/user/src/Plugin/Condition/UserRole.php Provides a 'User Role' condition.
UserRole.php file core/modules/user/src/Plugin/Condition/UserRole.php
UserRole::buildConfigurationForm function core/modules/user/src/Plugin/Condition/UserRole.php Form constructor.
UserRole::defaultConfiguration function core/modules/user/src/Plugin/Condition/UserRole.php Gets default configuration for this plugin.
UserRole::evaluate function core/modules/user/src/Plugin/Condition/UserRole.php Evaluates the condition and returns TRUE or FALSE accordingly.
UserRole::getCacheContexts function core/modules/user/src/Plugin/Condition/UserRole.php
UserRole::submitConfigurationForm function core/modules/user/src/Plugin/Condition/UserRole.php Form submission handler.
UserRole::summary function core/modules/user/src/Plugin/Condition/UserRole.php Provides a human readable summary of the condition's configuration.
UserRoleAdminTest class core/modules/user/tests/src/Functional/UserRoleAdminTest.php Tests adding, editing and deleting user roles and changing role weights.
UserRoleAdminTest.php file core/modules/user/tests/src/Functional/UserRoleAdminTest.php
UserRoleAdminTest::$adminUser property core/modules/user/tests/src/Functional/UserRoleAdminTest.php User with admin privileges.
UserRoleAdminTest::$defaultTheme property core/modules/user/tests/src/Functional/UserRoleAdminTest.php The theme to install as the default for testing.
UserRoleAdminTest::$modules property core/modules/user/tests/src/Functional/UserRoleAdminTest.php Modules to install.
UserRoleAdminTest::setUp function core/modules/user/tests/src/Functional/UserRoleAdminTest.php
UserRoleAdminTest::testRoleAdministration function core/modules/user/tests/src/Functional/UserRoleAdminTest.php Tests adding, renaming and deleting roles.
UserRoleAdminTest::testRoleWeightOrdering function core/modules/user/tests/src/Functional/UserRoleAdminTest.php Tests user role weight change operation and ordering.
UserRoleConditionTest class core/modules/user/tests/src/Kernel/Condition/UserRoleConditionTest.php Tests the user role condition.
UserRoleConditionTest.php file core/modules/user/tests/src/Kernel/Condition/UserRoleConditionTest.php
UserRoleConditionTest::$anonymous property core/modules/user/tests/src/Kernel/Condition/UserRoleConditionTest.php An anonymous user for testing purposes.
UserRoleConditionTest::$authenticated property core/modules/user/tests/src/Kernel/Condition/UserRoleConditionTest.php An authenticated user for testing purposes.
UserRoleConditionTest::$manager property core/modules/user/tests/src/Kernel/Condition/UserRoleConditionTest.php The condition plugin manager.

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