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 |
|---|---|---|---|---|---|---|---|---|
| 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 | ||
| VariableMultiRow | class | Drupal\migrate_drupal\Plugin\migrate\source | core/ |
Drupal 6/7 multiple variables source from database. | 1 | 2 | ||
| VariableMultiRowTest | class | Drupal\Tests\migrate_drupal\Kernel\Plugin\migrate\source | core/ |
Tests the variable multirow source plugin. | ||||
| VariableTest | class | Drupal\Tests\migrate_drupal\Kernel\Plugin\migrate\source | core/ |
Tests the variable source plugin. | ||||
| VariableTest | class | Drupal\Tests\Component\Utility | core/ |
Test variable export functionality in Variable component. | ||||
| VariableTestMock | class | Drupal\Tests\Component\Utility | core/ |
A class for testing Variable::callableToString(). | ||||
| VariableTranslation | class | Drupal\migrate_drupal\Plugin\migrate\source\d6 | core/ |
Drupal 6 i18n_variable source from database. | 1 | |||
| VariableTranslation | class | Drupal\migrate_drupal\Plugin\migrate\source\d7 | core/ |
Drupal 7 variable_store source from database. | 1 | |||
| VariableTranslationCheckRequirementsTest | class | Drupal\Tests\migrate_drupal\Kernel\d6 | core/ |
Tests check requirements for variable translation source plugin. | ||||
| VariableTranslationTest | class | Drupal\Tests\migrate_drupal\Kernel\Plugin\migrate\source\d6 | core/ |
Tests the variable source plugin. | ||||
| VariableTranslationTest | class | Drupal\Tests\migrate_drupal\Kernel\Plugin\migrate\source\d7 | core/ |
Tests the variable source plugin. | ||||
| VariantBase | abstract class | Drupal\Core\Display | core/ |
Provides a base class for DisplayVariant plugins. | 4 | 4 | ||
| VariantInterface | interface | Drupal\Core\Display | core/ |
Provides an interface for DisplayVariant plugins. | 3 |
Pagination
- Previous page
- Page 213
- Next page
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.