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 |
|---|---|---|---|---|---|---|---|---|
| UrlTest | class | Drupal\Tests\system\Functional\Common | core/ |
Confirm that the link generator works correctly. | ||||
| UrlTest | class | Drupal\Tests\system\Kernel\Common | core/ |
Tests the Url object. | ||||
| UrlTest | class | Drupal\Tests\Core | core/ |
Tests Drupal\Core\Url. | ||||
| UrlTransformRelativeTest | class | Drupal\KernelTests\Core\File | core/ |
Tests URL transform to relative. | ||||
| UsageTest | class | Drupal\Tests\file\Kernel | core/ |
Tests file usage functions. | ||||
| UseCacheBackendTrait | trait | Drupal\Core\Cache | core/ |
Provides methods to use a cache backend while respecting a 'use caches' flag. | 4 | |||
| Used | final class | Drupal\Tests\Component\Annotation\Doctrine\Fixtures\Attribute | core/ |
#[ExampleAttribute] | ||||
| UsedAs | final class | Drupal\Tests\Component\Annotation\Doctrine\Fixtures\Attribute | core/ |
#[ClassAttribute] | ||||
| UsedAsQualified | final class | Drupal\Tests\Component\Annotation\Doctrine\Fixtures\Attribute | core/ |
#[ClassAttributes\ExampleAttribute] | ||||
| User | class | Drupal\user\Entity | core/ |
Defines the user entity class. | 1 | 184 | ||
| User | class | Drupal\user\Plugin\views\argument_validator | core/ |
Validate whether an argument is a valid user. | 1 | |||
| User | class | Drupal\user\Plugin\views\argument_default | core/ |
Default argument plugin to extract a user from request. | ||||
| 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 | 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. |
Pagination
- Previous page
- Page 211
- Next page
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.