Classes, traits, and interfaces - main - 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 1529
| Name | Deprecated | Object type | Namespace | File name | Summary | Direct uses | Use statements | Strings |
|---|---|---|---|---|---|---|---|---|
| User | class | Drupal\user\Plugin\migrate\source\d6 | core/ |
Drupal 6 user source from database. | 1 | |||
| User | class | Drupal\user\Plugin\migrate\source\d7 | core/ |
Drupal 7 user source from database. | 1 | |||
| User | class | Drupal\user\Plugin\migrate | core/ |
Plugin class for Drupal 7 user migrations dealing with fields and profiles. | 2 | |||
| UserAccessControlHandler | class | Drupal\user | core/ |
Defines the access control handler for the user entity type. | 2 | |||
| UserAccessControlHandlerTest | class | Drupal\Tests\user\Unit | core/ |
Tests the user access controller. | ||||
| UserAccessTestHooks | class | Drupal\user_access_test\Hook | core/ |
Hook implementations for user_access_test. | ||||
| UserAccountFormFieldsTest | class | Drupal\Tests\user\Kernel | core/ |
Verifies the field order in user account forms. | ||||
| UserAccountFormPasswordResetTest | class | Drupal\Tests\user\Kernel | core/ |
Verifies that the password reset behaves as expected with form elements. | ||||
| UserAccountLinksTest | class | Drupal\Tests\user\Functional | core/ |
Tests user-account links. | ||||
| UserActionConfigSchemaTest | class | Drupal\Tests\user\Kernel | core/ |
Tests that the config schema is valid when roles are added or removed. | ||||
| UserAdminLanguageTest | class | Drupal\Tests\user\Functional | core/ |
Tests users' ability to change their own administration language. | ||||
| UserAdminListingTest | class | Drupal\Tests\user\Functional | core/ |
Tests the user admin listing if views is not enabled. | ||||
| UserAdminSettingsFormTest | class | Drupal\Tests\user\Kernel | core/ |
Configuration object user.mail and user.settings save test. | ||||
| UserAdminTest | class | Drupal\Tests\user\Functional | core/ |
Tests user administration page functionality. | ||||
| UserAgent | class | Drupal\Component\Utility | core/ |
Provides user agent related utility functions. | 3 | |||
| UserAgentTest | class | Drupal\Tests\Component\Utility | core/ |
Tests bytes size parsing helper methods. | ||||
| UserAnonymousActivateTest | class | Drupal\Tests\user\Kernel | core/ |
Tests unblocking the anonymous user account. | ||||
| UserAuth | class | Drupal\user | core/ |
Validates user authentication credentials. | 1 | |||
| UserAuthDecorator | class | Drupal\user_auth_decorator_test | core/ |
Helper to validate UserAuthInterface BC layers are functional. | 3 | 2 | ||
| UserAuthentication | class | Drupal\user | core/ |
Validates user authentication credentials. | 1 | 2 | ||
| UserAuthenticationController | in drupal:11.4.0 and is removed from drupal:12.0.0. Use \Drupal\rest\Controller\RestAuthenticationController instead. |
class | Drupal\user\Controller | core/ |
Provides controllers for login, login status and logout via HTTP requests. | 1 | ||
| UserAuthenticationInterface | interface | Drupal\user | core/ |
An interface for validating user authentication credentials. | 1 | 4 | ||
| UserAuthenticationTest | class | Drupal\Tests\user\Unit | core/ |
Tests Drupal\user\UserAuthentication. | ||||
| UserAuthInterface | interface | Drupal\user | core/ |
An interface for validating user authentication credentials. | 2 | 1 | ||
| UserAuthTest | class | Drupal\Tests\user\Unit | core/ |
Tests Drupal\user\UserAuth. | ||||
| UserBatchActionTest | class | Drupal\Tests\views\Functional | core/ |
Tests the views bulk form with batch action. | ||||
| UserBlocksTest | class | Drupal\Tests\user\Functional | core/ |
Tests user blocks. | ||||
| UserBulkForm | class | Drupal\user\Plugin\views\field | core/ |
Defines a user operations bulk form element. | 1 | |||
| UserBulkFormTest | class | Drupal\Tests\user\Unit\Plugin\views\field | core/ |
Tests Drupal\user\Plugin\views\field\UserBulkForm. | ||||
| UserCacheContext | class | Drupal\Core\Cache\Context | core/ |
Defines the UserCacheContext service, for "per user" caching. | 2 | |||
| UserCacheContextBase | abstract class | Drupal\Core\Cache\Context | core/ |
Base class for user-based cache contexts. | 5 | 1 | ||
| UserCacheTagsTest | class | Drupal\Tests\user\Functional | core/ |
Tests the User entity's cache tags. | ||||
| UserCancelForm | class | Drupal\user\Form | core/ |
Provides a confirmation form for cancelling user account. | 1 | |||
| UserCancelMethodsConstraint | class | Drupal\user\Plugin\Validation\Constraint | core/ |
Constraint for the user cancel method. | ||||
| UserCancelTest | class | Drupal\Tests\user\Functional | core/ |
Ensure that account cancellation methods work as expected. | ||||
| UserChangedTest | class | Drupal\Tests\user\Functional\Views | core/ |
Tests the changed field. | ||||
| UserConfigValidationTest | class | Drupal\Tests\user\Kernel | core/ |
Tests validating user modules' configuration. | ||||
| UserContextAccessPolicy | class | Drupal\Tests\Core\Session | core/ |
A test access policy class that sets a context. | ||||
| UserController | class | Drupal\user\Controller | core/ |
Controller routines for user routes. | 1 | |||
| UserControllerTest | class | Drupal\Tests\user\Kernel\Controller | core/ |
Tests for the User controller. | ||||
| UserCreateFailMailTest | class | Drupal\Tests\user\Functional | core/ |
Tests the create user administration page. | ||||
| UserCreateTest | class | Drupal\Tests\user\Functional | core/ |
Tests the create user administration page. | ||||
| UserCreationTrait | trait | Drupal\Tests\user\Traits | core/ |
Provides test methods for user creation and authentication. | 129 | |||
| UserData | class | Drupal\user\Plugin\views\field | core/ |
Provides access to the user data service. | ||||
| UserData | class | Drupal\user\Plugin\migrate\destination | core/ |
Migration destination for user data. | 1 | |||
| UserData | class | Drupal\user | core/ |
Defines the user data service. | 1 | 2 | ||
| UserDataInterface | interface | Drupal\user | core/ |
Defines the user data service interface. | 1 | 6 | ||
| UserDataTest | class | Drupal\Tests\user\Kernel\Views | core/ |
Tests the user data service field handler. | ||||
| UserDeleteTest | class | Drupal\Tests\user\Kernel | core/ |
Tests deleting of user accounts. | ||||
| UserEditedOwnAccountTest | class | Drupal\Tests\user\Functional | core/ |
Tests user edited own account can still log in. |
Pagination
- Previous page
- Page 209
- Next page
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.