Classes, traits, and interfaces - 9.5.x - 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 1523
| Name | Deprecated | Object type | Namespace | File name | Summary | Direct uses | Use statements | Strings |
|---|---|---|---|---|---|---|---|---|
| Uuid | class | Drupal\Component\Uuid | core/ |
UUID Helper methods. | 7 | |||
| UuidConstraint | class | Drupal\Core\Validation\Plugin\Validation\Constraint | core/ |
Validates a UUID. | ||||
| UuidFormatterTest | class | Drupal\Tests\field\Kernel\String | core/ |
Tests the output of a UUID field. | ||||
| UuidInterface | interface | Drupal\Component\Uuid | core/ |
Interface for generating UUIDs. | 3 | 11 | ||
| UuidItem | class | Drupal\Core\Field\Plugin\Field\FieldType | core/ |
Defines the 'uuid' entity field type. | ||||
| UuidItemTest | class | Drupal\Tests\field\Kernel\String | core/ |
Tests the UUID field. | ||||
| UuidReferenceInterface | interface | Drupal\serialization\EntityResolver | core/ |
Interface for extracting UUID from entity reference data when denormalizing. | 1 | 1 | ||
| 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/ |
@coversDefaultClass \Drupal\serialization\EntityResolver\UuidResolver[[api-linebreak]] @group serialization | ||||
| UuidTest | class | Drupal\Tests\Component\Uuid | core/ |
Tests the handling of Universally Unique Identifiers (UUIDs). | ||||
| ValidateHostnameTest | class | Drupal\Tests\Core\DrupalKernel | core/ |
@coversDefaultClass \Drupal\Core\DrupalKernel[[api-linebreak]] @group 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 | |||
| ValidateTest | class | Drupal\Tests\file\Kernel | core/ |
Tests the file_validate() function. | ||||
| ValidationErrorBlock | class | Drupal\settings_tray_test\Plugin\Block | core/ |
Provides a 'Block with validation error' test block. | ||||
| ValidationTest | class | Drupal\Tests\system\Functional\Form | core/ |
Tests form processing and alteration via form validation handlers. | ||||
| ValidatorsTest | class | Drupal\Tests\ckeditor5\Kernel | core/ |
@covers \Drupal\ckeditor5\Plugin\Validation\Constraint\ToolbarItemConstraintValidator[[api-linebreak]] @covers \Drupal\ckeditor5\Plugin\Validation\Constraint\ToolbarItemDependencyConstraintValidator[[api-linebreak]] @covers… | ||||
| ValidatorTest | class | Drupal\Tests\file\Kernel | core/ |
Tests the functions used to validate uploaded files. | ||||
| ValidConsumer | class | Drupal\Tests\Core\DependencyInjection\Compiler | core/ |
|||||
| ValidConsumerWithExtraArguments | class | Drupal\Tests\Core\DependencyInjection\Compiler | core/ |
|||||
| ValidHandler | class | Drupal\Tests\Core\DependencyInjection\Compiler | core/ |
|||||
| 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. | ||||
| 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 | 4 | ||
| VariableMultiRow | class | Drupal\migrate_drupal\Plugin\migrate\source | core/ |
Drupal 6/7 multiple variables source from database. | 2 | 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. | ||||
| VariableTranslation | class | Drupal\migrate_drupal\Plugin\migrate\source\d6 | core/ |
Drupal 6 i18n_variable source from database. | ||||
| VariableTranslation | class | Drupal\migrate_drupal\Plugin\migrate\source\d7 | core/ |
Drupal 7 variable_store source from database. | ||||
| 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. | 3 | 3 | ||
| VariantInterface | interface | Drupal\Core\Display | core/ |
Provides an interface for DisplayVariant plugins. | 3 | |||
| VariantManager | class | Drupal\Core\Display | core/ |
Manages discovery of display variant plugins. | 2 | |||
| VegetableInterface | interface | Drupal\Tests\Component\Plugin\Fixtures\vegetable | core/ |
Provides an interface for test plugins. | 1 | 1 | ||
| VendorHardeningPlugin | class | Drupal\Composer\Plugin\VendorHardening | composer/ |
A Composer plugin to clean out your project's vendor directory. | 1 | |||
| VendorHardeningPluginTest | class | Drupal\Tests\Composer\Plugin\VendorHardening | core/ |
@coversDefaultClass \Drupal\Composer\Plugin\VendorHardening\VendorHardeningPlugin[[api-linebreak]] @group VendorHardening | ||||
| Version | final class | Drupal\Tests\Component\Annotation\Doctrine\Fixtures\Annotation | core/ |
Plugin annotation @Target("PROPERTY"); | ||||
| VersionById | class | Drupal\jsonapi\Revisions | core/ |
Defines a revision ID implementation for entity revision ID values. | 1 | 2 | ||
| VersionByRel | class | Drupal\jsonapi\Revisions | core/ |
Revision ID implementation for the default or latest revisions. | 2 | 2 | ||
| VersionNegotiator | class | Drupal\jsonapi\Revisions | core/ |
Provides a version negotiator manager. | 1 | 2 | ||
| VersionNegotiatorInterface | interface | Drupal\jsonapi\Revisions | core/ |
Defines the common interface for all version negotiators. | 2 |
Pagination
- Previous page
- Page 183
- Next page
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.