Classes, traits, and interfaces - Drupal 11.1.x - Drupal Core
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
File
-
core/
core.api.php, line 1518
Name | Deprecated | Object type | Namespace | File name | Summary | Direct uses | Use statements | Strings |
---|---|---|---|---|---|---|---|---|
D6NodeDeriver | class | Drupal\node\Plugin\migrate | core/ |
Deriver for Drupal 6 node and node revision migrations based on node types. | 4 | |||
D6NodeTranslation | class | Drupal\node\Plugin\migrate | core/ |
Migration plugin for the Drupal 6 node translations. | 2 | |||
D6TermNodeDeriver | class | Drupal\taxonomy\Plugin\migrate | core/ |
Deriver for Drupal 6 term node migrations based on vocabularies. | 3 | |||
D7Comment | class | Drupal\comment\Plugin\migrate | core/ |
Migration plugin for Drupal 7 comments with fields. | 2 | |||
D7NodeDeriver | class | Drupal\node\Plugin\migrate | core/ |
Deriver for Drupal 7 node and node revision migrations based on node types. | 5 | |||
D7NodeTranslation | class | Drupal\node\Plugin\migrate | core/ |
Migration plugin for the Drupal 7 node translations. | 2 | |||
D7TaxonomyTermDeriver | class | Drupal\taxonomy\Plugin\migrate | core/ |
Deriver for Drupal 7 taxonomy term migrations based on vocabularies. | 2 | |||
Dashboard | final class | SebastianBergmann\CodeCoverage\Report\Html | vendor/ |
@internal This class is not covered by the backward compatibility promise for phpunit/php-code-coverage | ||||
Data | abstract class | Drupal\jsonapi\JsonApiResource | core/ |
Represents the `data` and `included` objects of a top-level object. | 2 | 3 | ||
Data | class | Symfony\Component\VarDumper\Cloner | vendor/ |
@author Nicolas Grekas <p@tchwork.com> | 22 | |||
Database | abstract class | Drupal\Core\Database | core/ |
Primary front-controller for the database system. | 39 | |||
DatabaseAccessDeniedException | class | Drupal\Core\Database | core/ |
Exception thrown if access credentials fail. | 2 | |||
DatabaseBackend | class | Drupal\Core\Flood | core/ |
Defines the database flood backend. This is the default Drupal backend. | ||||
DatabaseBackend | class | Drupal\Core\Cache | core/ |
Defines a default cache implementation. | 1 | |||
DatabaseBackendFactory | class | Drupal\Core\Cache | core/ |
|||||
DatabaseCacheTagsChecksum | class | Drupal\Core\Cache | core/ |
Cache tags invalidations checksum implementation that uses the database. | ||||
DatabaseConnectionRefusedException | class | Drupal\Core\Database | core/ |
Exception thrown if server refuses connection. | 2 | |||
DatabaseDriver | class | Drupal\Core\Extension | core/ |
Defines a database driver extension object. | ||||
DatabaseDriverList | class | Drupal\Core\Extension | core/ |
Provides a list of available database drivers. | 2 | |||
DatabaseDriverUninstallValidator | class | Drupal\Core\Extension | core/ |
Ensures installed modules providing a database driver are not uninstalled. | ||||
DatabaseEvent | abstract class | Drupal\Core\Database\Event | core/ |
Represents a database event. | 2 | 1 | ||
DatabaseException | interface | Drupal\Core\Database | core/ |
Interface for a database exception. | 23 | 22 | ||
DatabaseExceptionWrapper | class | Drupal\Core\Database | core/ |
This wrapper class serves only to provide additional debug information. | 15 | |||
DatabaseFileUsageBackend | class | Drupal\file\FileUsage | core/ |
Defines the database file usage backend. This is the default Drupal backend. | 2 | |||
DatabaseLockBackend | class | Drupal\Core\Lock | core/ |
Defines the database lock backend. This is the default backend in Drupal. | 1 | |||
DatabaseLockBackend | class | Drupal\Core\ProxyClass\Lock | core/ |
Provides a proxy class for \Drupal\Core\Lock\DatabaseLockBackend. | ||||
DatabaseNotFoundException | class | Drupal\Core\Database | core/ |
Exception thrown if specified database is not found. | 8 | |||
DatabaseQueue | class | Drupal\Core\Queue | core/ |
Default queue implementation. | 1 | |||
DatabaseStorage | class | Drupal\Core\Config | core/ |
Defines the Database storage. | ||||
DatabaseStorage | class | Drupal\Core\KeyValueStore | core/ |
Defines a default key/value store implementation. | 1 | |||
DatabaseStorageExpirable | class | Drupal\Core\KeyValueStore | core/ |
Defines a default key/value store implementation for expiring items. | ||||
DatabaseTableTrait | trait | Symfony\Component\Lock\Store | vendor/ |
@internal | ||||
DataCollector | abstract class | Symfony\Component\HttpKernel\DataCollector | vendor/ |
DataCollector. | 14 | 4 | ||
DataCollectorInterface | interface | Symfony\Component\HttpKernel\DataCollector | vendor/ |
DataCollectorInterface. | 1 | 2 | ||
DataCommand | class | Drupal\Core\Ajax | core/ |
An AJAX command for implementing jQuery's data() method. | ||||
DataDefinition | class | Drupal\Core\TypedData | core/ |
A typed data definition class for defining data based on defined data types. | 5 | 28 | ||
DataDefinitionInterface | interface | Drupal\Core\TypedData | core/ |
Interface for data definitions. | 4 | 9 | ||
DataDumperInterface | interface | Symfony\Component\VarDumper\Dumper | vendor/ |
DataDumperInterface for dumping Data objects. | 4 | 2 | ||
DataEntityRow | class | Drupal\rest\Plugin\views\row | core/ |
Plugin which displays entities as raw data. | ||||
DataFieldRow | class | Drupal\rest\Plugin\views\row | core/ |
Plugin which displays fields as raw data. | ||||
DataFromDataProvider | final class | PHPUnit\Event\TestData | vendor/ |
@psalm-immutable | 1 | |||
DataFromTestDependency | final class | PHPUnit\Event\TestData | vendor/ |
@psalm-immutable | 1 | |||
DataInterface | interface | OpenTelemetry\SDK\Metrics\Data | vendor/ |
3 | 4 | |||
DataNormalizer | class | Drupal\jsonapi\Normalizer | core/ |
Normalizes JSON:API Data objects. | 2 | |||
DataPart | class | Symfony\Component\Mime\Part | vendor/ |
@author Fabien Potencier <fabien@symfony.com> | 1 | 5 | ||
DataPointFlags | class | Opentelemetry\Proto\Metrics\V1 | vendor/ |
DataPointFlags is defined as a protobuf 'uint32' type and is to be used as a bit-field representing 32 distinct boolean flags. Each flag defined in this enum is a bit-mask. To test the presence of a single flag in the flags of a data… | ||||
DataProvider | final class | PHPUnit\Metadata | vendor/ |
@psalm-immutable | 1 | |||
DataProvider | final class | PHPUnit\Metadata\Api | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | 1 | |||
DataProvider | final class | PHPUnit\Framework\Attributes | vendor/ |
@psalm-immutable | 4 | |||
DataProviderDeclarationRule | class | PHPStan\Rules\PHPUnit | vendor/ |
@implements Rule<Node\Stmt\ClassMethod> |