Classes, traits, and interfaces in Drupal 9
Primary tabs
Introduction to classes
A lot of the PHP code in Drupal is object oriented (OO), making use of PHP classes, interfaces, and traits. See the Objected-oriented programming conventions for more information.
See also
Objected-oriented programming conventions
|
Name |
Type | Namespace | Location | Description | Direct uses | Use statements | Strings |
|---|---|---|---|---|---|---|---|
| UserPasswordResetTest | class |
Drupal\ |
core/ |
Ensure that password reset methods work as expected. | |||
| UserPasswordResetTest | class |
Drupal\ |
core/ |
Ensure that password reset methods work as expected. | |||
| UserPathTest | class |
Drupal\ |
core/ |
Tests overriding user paths using wildcards. | |||
| UserPermissionsForm | class |
Drupal\ |
core/ |
Provides the user permissions administration form. | 1 | 1 | |
| UserPermissionsRoleSpecificForm | class |
Drupal\ |
core/ |
Provides the user permissions administration form for a specific role. | 1 | ||
| UserPermissionsTest | class |
Drupal\ |
core/ |
Verify that role permissions can be added and removed via the permissions page. | |||
| UserPicture | class |
Drupal\ |
core/ |
Drupal 6 user picture source from database. | |||
| UserPictureFile | class |
Drupal\ |
core/ |
Drupal 6 user picture source from database. | |||
| UserPictureFileTest | class |
Drupal\ |
core/ |
Tests the d6_user_picture_file source plugin. | |||
| UserPictureInstance | class |
Drupal\ |
core/ |
User picture field instance source from database. | |||
| UserPictureInstanceTest | class |
Drupal\ |
core/ |
Tests the user_picture_instance source plugin. | |||
| UserPictureTest | class |
Drupal\ |
core/ |
Tests user picture functionality. | |||
| UserPictureTest | class |
Drupal\ |
core/ |
Tests the d6_user_picture source plugin. | |||
| UserReference | class |
Drupal\ |
core/ |
MigrateField Plugin for Drupal 6 user reference fields. | |||
| UserReference | class |
Drupal\ |
core/ |
MigrateField plugin for Drupal 7 user_reference fields. | |||
| UserRegistrationResource | class |
Drupal\ |
core/ |
Represents user registration as a resource. | 1 | ||
| UserRegistrationResourceTest | class |
Drupal\ |
core/ |
Tests User Registration REST resource. | |||
| UserRegistrationTest | class |
Drupal\ |
core/ |
Tests registration of user under different configurations. | |||
| UserRequestSubscriber | class |
Drupal\ |
core/ |
Updates the current user's last access time. | 2 | ||
| UserResourceTestBase | abstract class |
Drupal\ |
core/ |
7 | 1 | ||
| UserRole | class |
Drupal\ |
core/ |
Provides a 'User Role' condition. | |||
| UserRoleAdminTest | class |
Drupal\ |
core/ |
Tests adding, editing and deleting user roles and changing role weights. | |||
| UserRoleConditionTest | class |
Drupal\ |
core/ |
Tests the user role condition. | |||
| UserRoleDeleteTest | class |
Drupal\ |
core/ |
Tests the handling of user_role entity from the user module. | |||
| UserRoleEntityTest | class |
Drupal\ |
core/ |
@group user @coversDefaultClass \Drupal\user\Entity\Role | |||
| UserRolesAssignmentTest | class |
Drupal\ |
core/ |
Tests that users can be assigned and unassigned roles. | |||
| UserRolesCacheContext | class |
Drupal\ |
core/ |
Defines the UserRolesCacheContext service, for "per role" caching. | 2 | ||
| UserRouteAlterSubscriber | class |
Drupal\ |
core/ |
Alters user authentication routes to support additional serialization formats. | 2 | ||
| UserRouteProvider | class |
Drupal\ |
core/ |
Provides routes for the user entity. | |||
| UserRow | class |
Drupal\ |
core/ |
A row plugin which renders a user. | |||
| Users | class |
Drupal\ |
core/ |
Tests creating user views with the wizard. | |||
| UserSaveStatusTest | class |
Drupal\ |
core/ |
Tests user saving status. | |||
| UserSaveTest | class |
Drupal\ |
core/ |
Tests account saving for arbitrary new uid. | |||
| UserSearch | class |
Drupal\ |
core/ |
Executes a keyword search for users against the {users} database table. | |||
| UserSearchTest | class |
Drupal\ |
core/ |
Tests the user search page and verifies that sensitive information is hidden from unauthorized users. | |||
| UserSelection | class |
Drupal\ |
core/ |
Provides specific access control for the user entity type. | |||
| UserSession | class |
Drupal\ |
core/ |
An implementation of the user account interface for the global user. | 1 | 9 | |
| UserSessionTest | class |
Drupal\ |
core/ |
@coversDefaultClass \Drupal\Core\Session\UserSession @group Session | 1 | 1 | |
| UserStorage | class |
Drupal\ |
core/ |
Controller class for users. | |||
| UserStorageInterface | interface |
Drupal\ |
core/ |
Defines an interface for user entity storage classes. | 1 | 11 | |
| UserStorageSchema | class |
Drupal\ |
core/ |
Defines the user schema handler. | |||
| UserSubAdminTest | class |
Drupal\ |
core/ |
Test 'sub-admin' account with permission to edit some users but without 'administer users' permission. | |||
| UserTest | class |
Drupal\ |
core/ |
@coversDefaultClass \Drupal\user\Entity\User @group user | |||
| UserTest | class |
Drupal\ |
core/ |
JSON:API integration test for the "User" content entity type. | |||
| UserTest | class |
Drupal\ |
core/ |
Tests the d6_user source plugin. | |||
| UserTest | class |
Drupal\ |
core/ |
Tests the d7_user source plugin. | |||
| UserTestBase | abstract class |
Drupal\ |
core/ |
@todo. | 7 | ||
| UserTimeZoneTest | class |
Drupal\ |
core/ |
Set a user time zone and verify that dates are displayed in local time. | |||
| UserTokenReplaceTest | class |
Drupal\ |
core/ |
Generates text using placeholders for dummy content to check user token replacement. | |||
| UserTrackerTab | class |
Drupal\ |
core/ |
Provides route parameters needed to link to the current user tracker tab. | 1 |