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 |
|---|---|---|---|---|---|---|---|---|
| UserUpdate8002 | in drupal:11.3.0 and is removed from drupal:12.0.0. There is no replacement. |
class | Drupal\user\Plugin\migrate\process | core/ |
Keep the predefined roles for rid 1 and 2. | |||
| UserValidationTest | class | Drupal\Tests\user\Kernel | core/ |
Verify that user validity checks behave as designed. | ||||
| UserViewsData | class | Drupal\user | core/ |
Provides the views data for the user entity type. | 1 | |||
| UserViewsDataTest | class | Drupal\Tests\user\Kernel\Views | core/ |
Contains tests related to the views data for the user entity type. | ||||
| UserViewsExecutionHooks | class | Drupal\user\Hook | core/ |
Hook implementations for user. | ||||
| UserViewsFieldAccessTest | class | Drupal\Tests\user\Kernel\Views | core/ |
Tests base field access in Views for the user entity. | ||||
| UserViewsHooks | class | Drupal\user\Hook | core/ |
Hook implementations for user. | ||||
| UserXmlAnonTest | class | Drupal\Tests\user\Functional\Rest | core/ |
Tests User Xml Anon. | ||||
| UserXmlBasicAuthTest | class | Drupal\Tests\user\Functional\Rest | core/ |
Tests User Xml Basic Auth. | ||||
| UserXmlCookieTest | class | Drupal\Tests\user\Functional\Rest | core/ |
Tests User Xml Cookie. | ||||
| UsingNonInstalledTraitClass | class | Drupal\plugin_test\Plugin\plugin_test\custom_annotation | core/ |
This class does not have a plugin attribute or plugin annotation on purpose. | ||||
| Uuid | class | Drupal\Component\Uuid | core/ |
UUID Helper methods. | 9 | |||
| UuidConstraint | class | Drupal\Core\Validation\Plugin\Validation\Constraint | core/ |
Validates a UUID. | ||||
| UuidFormatterTest | class | Drupal\Tests\field\Kernel\KernelString | core/ |
Tests the output of a UUID field. | ||||
| UuidInterface | interface | Drupal\Component\Uuid | core/ |
Interface for generating UUIDs. | 3 | 27 | ||
| UuidItem | class | Drupal\Core\Field\Plugin\Field\FieldType | core/ |
Defines the 'uuid' entity field type. | ||||
| UuidItemTest | class | Drupal\Tests\field\Kernel\KernelString | core/ |
Tests the UUID field. | ||||
| UuidReferenceInterface | interface | Drupal\serialization\EntityResolver | core/ |
Interface for extracting UUID from entity reference data when denormalizing. | ||||
| UuidResolver | class | Drupal\serialization\EntityResolver | core/ |
Resolves entities from data that contains an entity UUID. | 1 | 2 | ||
| UuidResolverTest | class | Drupal\Tests\serialization\Unit\EntityResolver | core/ |
Tests Drupal\serialization\EntityResolver\UuidResolver. | ||||
| UuidTest | class | Drupal\Tests\Component\Uuid | core/ |
Tests the handling of Universally Unique Identifiers (UUIDs). | ||||
| UuidValidatorTest | class | Drupal\KernelTests\Core\Validation | core/ |
Tests the UUID validator. | ||||
| ValidateHostnameTest | class | Drupal\Tests\Core\DrupalKernel | core/ |
Tests Drupal\Core\DrupalKernel. | ||||
| ValidateMigrationStateTest | class | Drupal\Tests\migrate_drupal\Kernel\d6 | core/ |
Tests the migration state information in module.migrate_drupal.yml. | ||||
| ValidateMigrationStateTest | class | Drupal\Tests\migrate_drupal\Kernel\d7 | core/ |
Tests the migration state information in module.migrate_drupal.yml. | ||||
| ValidateMigrationStateTestTrait | trait | Drupal\Tests\migrate_drupal\Traits | core/ |
Tests the migration state information in module.migrate_drupal.yml. | 2 | |||
| ValidationErrorBlock | class | Drupal\settings_tray_test\Plugin\Block | core/ |
Provides a 'Block with validation error' test block. | ||||
| ValidationResult | final class | Drupal\package_manager | core/ |
A value object to contain the results of a validation. | 31 | |||
| ValidationResultTest | class | Drupal\Tests\package_manager\Unit | core/ |
Tests Drupal\package_manager\ValidationResult. | ||||
| ValidationTest | class | Drupal\Tests\system\FunctionalJavascript\Form | core/ |
Tests form validation handlers and messages. | ||||
| ValidationTest | class | Drupal\Tests\system\Functional\Form | core/ |
Tests form processing and alteration via form validation handlers. | ||||
| ValidationTestTrait | trait | Drupal\Tests\package_manager\Traits | core/ |
Contains helpful methods for testing stage validators. | 2 | |||
| ValidatorsTest | class | Drupal\Tests\ckeditor5\Kernel | core/ |
Tests Validators. | ||||
| ValidConsumer | class | Drupal\Tests\Core\DependencyInjection\Compiler | core/ |
Test class of a valid consumer. | ||||
| ValidConsumerWithExtraArguments | class | Drupal\Tests\Core\DependencyInjection\Compiler | core/ |
Test class of a valid consumer with extra arguments. | ||||
| ValidHandler | class | Drupal\Tests\Core\DependencyInjection\Compiler | core/ |
Test handler class with interface implemented. | ||||
| ValidKeysConstraint | class | Drupal\Core\Validation\Plugin\Validation\Constraint | core/ |
Checks that all the keys of a mapping are valid and required keys present. | 1 | |||
| ValidKeysConstraintValidator | class | Drupal\Core\Validation\Plugin\Validation\Constraint | core/ |
Validates the ValidKeys constraint. | 1 | |||
| ValidKeysConstraintValidatorTest | class | Drupal\KernelTests\Core\TypedData | core/ |
Tests the ValidKeys validation constraint. | ||||
| ValidPathConstraint | class | Drupal\Core\Path\Plugin\Validation\Constraint | core/ |
Validation constraint for valid system paths. | ||||
| ValidPathConstraintValidator | class | Drupal\Core\Path\Plugin\Validation\Constraint | core/ |
Constraint validator for validating system paths. | ||||
| ValidReferenceConstraint | class | Drupal\Core\Entity\Plugin\Validation\Constraint | core/ |
Entity Reference valid reference constraint. | ||||
| ValidReferenceConstraintValidator | class | Drupal\Core\Entity\Plugin\Validation\Constraint | core/ |
Checks if referenced entities are valid. | ||||
| ValidReferenceConstraintValidatorTest | class | Drupal\KernelTests\Core\Entity | core/ |
Tests validation constraints for ValidReferenceConstraintValidator. | ||||
| ValidSequenceKeysConstraint | class | Drupal\Core\Validation\Plugin\Validation\Constraint | core/ |
Checks that all the keys of a sequence match the specified constraints. | 1 | |||
| ValidSequenceKeysConstraintValidator | class | Drupal\Core\Validation\Plugin\Validation\Constraint | core/ |
Validates that all the keys of a sequence match the specified constraints. | 1 | |||
| ValidSequenceKeysValidatorTest | class | Drupal\KernelTests\Core\Validation | core/ |
Tests ValidSequenceKeys validation constraint with both valid and invalid values. | ||||
| Value | class | Drupal\Core\Render\Element | core/ |
Provides a form element for storage of internal information. | ||||
| Variable | class | Drupal\Component\Utility | core/ |
Provides helpers for dealing with variables. | 10 | |||
| Variable | class | Drupal\migrate_drupal\Plugin\migrate\source | core/ |
Drupal 6/7 variable source from database. | 4 | 5 |
Pagination
- Previous page
- Page 215
- Next page
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.