Classes, traits, and interfaces - 9.5.x - drupal
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
File
- 
              core/
core.api.php, line 1523  
| Name | Deprecated | Object type | Namespace | File name | Summary | Direct uses | Use statements | Strings | 
|---|---|---|---|---|---|---|---|---|
| UserLanguageCreationTest | class | Drupal\Tests\user\Functional | core/ | 
                                                                                        Tests preferred language configuration and language selector access. | ||||
| UserLanguageTest | class | Drupal\Tests\user\Functional | core/ | 
                                                                                        Functional tests for a user's ability to change their default language. | ||||
| UserLegacyTest | class | Drupal\Tests\user\Kernel | core/ | 
                                                                                        Tests legacy user functionality. | ||||
| UserListBuilder | class | Drupal\user | core/ | 
                                                                                        Defines a class to build a listing of user entities. | ||||
| UserLocalTask | class | Drupal\user\Plugin\Derivative | core/ | 
                                                                                        Provides local task definitions for all entity bundles. | 1 | 1 | ||
| UserLocalTasksTest | class | Drupal\Tests\user\Unit\Menu | core/ | 
                                                                                        Tests user local tasks. | ||||
| UserLocalTaskTest | class | Drupal\Tests\user\Unit\Plugin\Derivative | core/ | 
                                                                                        Tests the local tasks deriver class. | ||||
| UserLoginBlock | class | Drupal\user\Plugin\Block | core/ | 
                                                                                        Provides a 'User login' block. | ||||
| UserLoginForm | class | Drupal\user\Form | core/ | 
                                                                                        Provides a user login form. | 1 | 1 | ||
| UserLoginFormTest | class | Drupal\Tests\user\Kernel\Form | core/ | 
                                                                                        @coversDefaultClass \Drupal\user\Form\UserLoginForm[[api-linebreak]] @group user | ||||
| UserLoginHttpTest | class | Drupal\Tests\user\Functional | core/ | 
                                                                                        Tests login and password reset via direct HTTP. | 1 | 1 | ||
| UserLoginTest | class | Drupal\Tests\user\Functional | core/ | 
                                                                                        Ensure that login works as expected. | ||||
| UserMailDefaultsTest | class | Drupal\Tests\user\Kernel | core/ | 
                                                                                        Tests that user.mail default settings are parsed correctly. | ||||
| UserMailNotifyTest | class | Drupal\Tests\user\Kernel | core/ | 
                                                                                        Tests _user_mail_notify() use of user.settings.notify.*. | ||||
| UserMailRequired | class | Drupal\user\Plugin\Validation\Constraint | core/ | 
                                                                                        Checks if the user's email address is provided if required. | 1 | |||
| UserMailRequiredValidator | class | Drupal\user\Plugin\Validation\Constraint | core/ | 
                                                                                        Checks if the user's email address is provided if required. | 1 | |||
| UserMailRequiredValidatorTest | class | Drupal\Tests\user\Unit\Plugin\Validation\Constraint | core/ | 
                                                                                        @coversDefaultClass \Drupal\user\Plugin\Validation\Constraint\UserMailRequiredValidator[[api-linebreak]] @group user | ||||
| UserMailUnique | class | Drupal\user\Plugin\Validation\Constraint | core/ | 
                                                                                        Checks if a user's email address is unique on the site. | ||||
| UserMigrationClassTest | class | Drupal\Tests\user\Kernel\Migrate\d7 | core/ | 
                                                                                        Tests the user migration plugin class. | ||||
| UserMultipleCancelConfirm | class | Drupal\user\Form | core/ | 
                                                                                        Provides a confirmation form for cancelling multiple user accounts. | 1 | |||
| UserName | class | Drupal\user\Plugin\views\argument_validator | core/ | 
                                                                                        Validates whether a user name is valid. | ||||
| UserNameConstraint | class | Drupal\user\Plugin\Validation\Constraint | core/ | 
                                                                                        Checks if a value is a valid user name. | 1 | |||
| UserNameConstraintValidator | class | Drupal\user\Plugin\Validation\Constraint | core/ | 
                                                                                        Validates the UserName constraint. | ||||
| UserNameFormatter | class | Drupal\user\Plugin\Field\FieldFormatter | core/ | 
                                                                                        Plugin implementation of the 'user_name' formatter. | ||||
| UserNameFormatterTest | class | Drupal\Tests\user\Kernel\Field | core/ | 
                                                                                        Tests the user_name formatter. | ||||
| UserNameItem | class | Drupal\user | core/ | 
                                                                                        Defines a custom field item class for the 'name' user entity field. | ||||
| UserNameUnique | class | Drupal\user\Plugin\Validation\Constraint | core/ | 
                                                                                        Checks if a user name is unique on the site. | ||||
| UserPasswordForm | class | Drupal\user\Form | core/ | 
                                                                                        Provides a user password reset form. | 1 | |||
| UserPasswordResetForm | class | Drupal\user\Form | core/ | 
                                                                                        Form controller for the user password forms. | 1 | |||
| UserPasswordResetTest | class | Drupal\Tests\user\FunctionalJavascript | core/ | 
                                                                                        Ensure that password reset methods work as expected. | ||||
| UserPasswordResetTest | class | Drupal\Tests\user\Functional | core/ | 
                                                                                        Ensure that password reset methods work as expected. | ||||
| UserPathTest | class | Drupal\Tests\views\Functional | core/ | 
                                                                                        Tests overriding user paths using wildcards. | ||||
| UserPermissionsAdminTest | class | Drupal\Tests\user\Functional | core/ | 
                                                                                        Tests adding and removing permissions via the UI. | ||||
| UserPermissionsForm | class | Drupal\user\Form | core/ | 
                                                                                        Provides the user permissions administration form. | 3 | 1 | ||
| UserPermissionsModuleSpecificForm | class | Drupal\user\Form | core/ | 
                                                                                        Provides the user permissions administration form for one or more module(s). | 1 | |||
| UserPermissionsRoleSpecificForm | class | Drupal\user\Form | core/ | 
                                                                                        Provides the user permissions administration form for a specific role. | 1 | |||
| UserPermissionsTest | class | Drupal\Tests\user\FunctionalJavascript | core/ | 
                                                                                        Tests the JS components added to the user permissions page. | ||||
| UserPermissionsTest | class | Drupal\Tests\user\Functional | core/ | 
                                                                                        Verifies role permissions can be added and removed via the permissions page. | ||||
| UserPicture | class | Drupal\user\Plugin\migrate\source\d6 | core/ | 
                                                                                        Drupal 6 user picture source from database. | ||||
| UserPictureFile | class | Drupal\user\Plugin\migrate\source\d6 | core/ | 
                                                                                        Drupal 6 user picture source from database. | ||||
| UserPictureFileTest | class | Drupal\Tests\user\Kernel\Plugin\migrate\source\d6 | core/ | 
                                                                                        Tests the d6_user_picture_file source plugin. | ||||
| UserPictureInstance | class | Drupal\user\Plugin\migrate\source | core/ | 
                                                                                        Drupal 6/7 user picture field instance source from database. | ||||
| UserPictureInstanceTest | class | Drupal\Tests\user\Kernel\Plugin\migrate\source | core/ | 
                                                                                        Tests the user_picture_instance source plugin. | ||||
| UserPictureTest | class | Drupal\Tests\user\Kernel\Plugin\migrate\source\d6 | core/ | 
                                                                                        Tests the d6_user_picture source plugin. | ||||
| UserPictureTest | class | Drupal\Tests\user\Functional | core/ | 
                                                                                        Tests user picture functionality. | ||||
| UserReference | class | Drupal\migrate_drupal\Plugin\migrate\field\d6 | core/ | 
                                                                                        MigrateField Plugin for Drupal 6 user reference fields. | ||||
| UserReference | class | Drupal\migrate_drupal\Plugin\migrate\field\d7 | core/ | 
                                                                                        MigrateField plugin for Drupal 7 user_reference fields. | ||||
| UserRegistrationResource | class | Drupal\user\Plugin\rest\resource | core/ | 
                                                                                        Represents user registration as a resource. | 1 | |||
| UserRegistrationResourceTest | class | Drupal\Tests\user\Unit | core/ | 
                                                                                        Tests User Registration REST resource. | ||||
| UserRegistrationRestTest | class | Drupal\Tests\user\Functional | core/ | 
                                                                                        Tests registration of user using REST. | 
Pagination
- Previous page
 - Page 181
 - Next page
 
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.