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 |
|---|---|---|---|---|---|---|---|
| UserTranslationUITest | class |
Drupal\ |
core/ |
Tests the User Translation UI. | |||
| UserUid | class |
Drupal\ |
core/ |
Filter handler to accept a user id to check for nodes that user posted or commented on. | |||
| UserUid | class |
Drupal\ |
core/ |
Argument handler to accept a user id to check for nodes that user posted or commented on. | 1 | 1 | |
| UserUid | class |
Drupal\ |
core/ |
UID filter to check for nodes that a user posted or commented on. | |||
| UserUid | class |
Drupal\ |
core/ |
UID argument to check for nodes that user posted or commented on. | |||
| UserUpdate7002 | class |
Drupal\ |
core/ |
Converts user time zones from time zone offsets to time zone names. | |||
| UserUpdate8002 | class |
Drupal\ |
core/ |
Keep the predefined roles for rid 1 and 2. | |||
| UserUpdateRoleDependenciesTest | class |
Drupal\ |
core/ |
Tests user_post_update_update_roles() upgrade path. | |||
| UserValidationTest | class |
Drupal\ |
core/ |
Verify that user validity checks behave as designed. | |||
| UserViewsData | class |
Drupal\ |
core/ |
Provides the views data for the user entity type. | |||
| UserViewsDataTest | class |
Drupal\ |
core/ |
Contains tests related to the views data for the user entity type. | |||
| UserViewsFieldAccessTest | class |
Drupal\ |
core/ |
Tests base field access in Views for the user entity. | |||
| UserXmlAnonTest | class |
Drupal\ |
core/ |
@group rest | |||
| UserXmlBasicAuthTest | class |
Drupal\ |
core/ |
@group rest | |||
| UserXmlCookieTest | class |
Drupal\ |
core/ |
@group rest | |||
| UsesCommandRequirements | class |
Drupal\ |
core/ |
||||
| Uuid | class |
Drupal\ |
core/ |
UUID Helper methods. | 6 | ||
| UuidConstraint | class |
Drupal\ |
core/ |
Validates a UUID. | |||
| UuidFormatterTest | class |
Drupal\ |
core/ |
Tests the output of a UUID field. | |||
| UuidInterface | interface |
Drupal\ |
core/ |
Interface for generating UUIDs. | 3 | 11 | |
| UuidItem | class |
Drupal\ |
core/ |
Defines the 'uuid' entity field type. | 1 | ||
| UuidItemTest | class |
Drupal\ |
core/ |
Tests the UUID field. | |||
| UuidReferenceInterface | interface |
Drupal\ |
core/ |
Interface for extracting UUID from entity reference data when denormalizing. | 1 | 1 | |
| UuidResolver | class |
Drupal\ |
core/ |
Resolves entities from data that contains an entity UUID. | 1 | 2 | |
| UuidResolverTest | class |
Drupal\ |
core/ |
@coversDefaultClass \Drupal\serialization\EntityResolver\UuidResolver @group serialization | |||
| UuidTest | class |
Drupal\ |
core/ |
Tests the handling of Universally Unique Identifiers (UUIDs). | |||
| ValidateHostnameTest | class |
Drupal\ |
core/ |
@coversDefaultClass \Drupal\Core\DrupalKernel @group DrupalKernel | |||
| ValidateMigrationStateTest | class |
Drupal\ |
core/ |
Tests the migration state information in module.migrate_drupal.yml. | |||
| ValidateMigrationStateTest | class |
Drupal\ |
core/ |
Tests the migration state information in module.migrate_drupal.yml. | |||
| ValidateMigrationStateTestTrait | trait |
Drupal\ |
core/ |
Tests the migration state information in module.migrate_drupal.yml. | 2 | ||
| ValidateTest | class |
Drupal\ |
core/ |
Tests the file_validate() function. | |||
| ValidationErrorBlock | class |
Drupal\ |
core/ |
Provides a 'Block with validation error' test block. | |||
| ValidationTest | class |
Drupal\ |
core/ |
Tests form processing and alteration via form validation handlers. | |||
| ValidatorTest | class |
Drupal\ |
core/ |
Tests the functions used to validate uploaded files. | |||
| ValidConsumer | class |
Drupal\ |
core/ |
||||
| ValidConsumerWithExtraArguments | class |
Drupal\ |
core/ |
||||
| ValidHandler | class |
Drupal\ |
core/ |
||||
| ValidPathConstraint | class |
Drupal\ |
core/ |
Validation constraint for valid system paths. | |||
| ValidPathConstraintValidator | class |
Drupal\ |
core/ |
Constraint validator for validating system paths. | |||
| ValidReferenceConstraint | class |
Drupal\ |
core/ |
Entity Reference valid reference constraint. | |||
| ValidReferenceConstraintValidator | class |
Drupal\ |
core/ |
Checks if referenced entities are valid. | |||
| ValidReferenceConstraintValidatorTest | class |
Drupal\ |
core/ |
Tests validation constraints for ValidReferenceConstraintValidator. | |||
| Value | class |
Drupal\ |
core/ |
Provides a form element for storage of internal information. | |||
| Variable | class |
Drupal\ |
core/ |
Drupal variable source from database. | 4 | 4 | |
| Variable | class |
Drupal\ |
core/ |
Provides helpers for dealing with variables. | 8 | ||
| VariableMultiRow | class |
Drupal\ |
core/ |
Multiple variables source from database. | 2 | 2 | |
| VariableMultiRowTest | class |
Drupal\ |
core/ |
Tests the variable multirow source plugin. | |||
| VariableTest | class |
Drupal\ |
core/ |
Tests the variable source plugin. | |||
| VariableTest | class |
Drupal\ |
core/ |
Test variable export functionality in Variable component. | |||
| VariableTranslation | class |
Drupal\ |
core/ |
Drupal i18n_variable source from database. |