Classes, traits, and interfaces - 10.3.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 1518
| Name | Deprecated | Object type | Namespace | File name | Summary | Direct uses | Use statements | Strings |
|---|---|---|---|---|---|---|---|---|
| UserEntityLabelTest | class | Drupal\Tests\user\Kernel | core/ |
Tests the label callback. | ||||
| UserEntityReferenceTest | class | Drupal\Tests\user\Kernel | core/ |
Tests the user reference field functionality. | ||||
| UserEntityTest | class | Drupal\Tests\user\Kernel | core/ |
Tests the user entity class. | ||||
| UserEntityTranslation | class | Drupal\user\Plugin\migrate\source\d7 | core/ |
Drupal 7 user entity translations source from database. | ||||
| UserEntityTranslationTest | class | Drupal\Tests\user\Kernel\Plugin\migrate\source\d7 | core/ |
Tests D7 user entity translation source plugin. | ||||
| UserEvents | final class | Drupal\user\Event | core/ |
Defines events for the user module. | 2 | |||
| UserFieldsAccessChangeTest | class | Drupal\Tests\user\Functional\Views | core/ |
Checks changing entity and field access. | ||||
| UserFieldsTest | class | Drupal\Tests\user\Kernel | core/ |
Tests available user fields in twig. | ||||
| UserFloodControl | class | Drupal\user | core/ |
User Flood Control service. | 2 | |||
| UserFloodControlInterface | interface | Drupal\user | core/ |
Defines an interface for user flood controllers. | 1 | 2 | ||
| UserFloodEvent | class | Drupal\user\Event | core/ |
Provides a user flood event for event listeners. | 2 | |||
| UserFloodSubscriber | class | Drupal\user\EventSubscriber | core/ |
Logs details of User Flood Control events. | 2 | |||
| UserHelpersTest | class | Drupal\FunctionalTests | core/ |
Tests User related helper methods of BrowserTestBase. | ||||
| UserInstallTest | class | Drupal\Tests\user\Kernel | core/ |
Tests user_install(). | ||||
| UserInterface | interface | Drupal\user | core/ |
Provides an interface defining a user entity. | 1 | 69 | ||
| UserJsonAnonTest | class | Drupal\Tests\user\Functional\Rest | core/ |
@group rest @group #slow | ||||
| UserJsonBasicAuthDecoratedTest | class | Drupal\Tests\user\Functional\Rest | core/ |
Run UserJsonBasicAuthTest with a user.auth decorator. | ||||
| UserJsonBasicAuthTest | class | Drupal\Tests\user\Functional\Rest | core/ |
@group rest @group #slow | 1 | |||
| UserJsonCookieTest | class | Drupal\Tests\user\Functional\Rest | core/ |
@group rest @group #slow | ||||
| UserKernelTestBase | abstract class | Drupal\Tests\user\Kernel\Views | core/ |
Provides a common test base for user views tests. | 4 | |||
| UserLangcode | class | Drupal\user\Plugin\migrate\process | core/ |
Provides a process plugin for the user langcode. | ||||
| 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. | ||||
| UserLanguageTestController | class | Drupal\user_language_test\Controller | core/ |
Returns responses for User Language Test routes. | ||||
| UserLanguageTestForm | class | Drupal\user_language_test\Form | core/ |
Provides a User Language Test form. | 1 | |||
| UserLazyBuilder | final class | Drupal\navigation | core/ |
User navigation block lazy builder. | 2 | |||
| 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. | ||||
| UserLoginDecoratedTest | class | Drupal\Tests\user\Functional | core/ |
Ensure that login works as expected with a decorator. | ||||
| UserLoginForm | class | Drupal\user\Form | core/ |
Provides a user login form. | 1 | 1 | ||
| UserLoginHttpDecoratedTest | class | Drupal\Tests\user\Functional | core/ |
Tests login and password reset via direct HTTP with a user.auth decorator. | ||||
| UserLoginHttpTest | class | Drupal\Tests\user\Functional | core/ |
Tests login and password reset via direct HTTP. | 1 | |||
| UserLoginTest | class | Drupal\Tests\user\Functional | core/ |
Ensure that login works as expected. | 1 | |||
| UserLogoutConfirm | class | Drupal\user\Form | core/ |
Provides a confirmation form for user logout. | 1 | |||
| UserLogoutTest | class | Drupal\Tests\user\Functional | core/ |
Tests user logout. | ||||
| 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. |
Pagination
- Previous page
- Page 190
- Next page
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.