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 |
|---|---|---|---|---|---|---|---|---|
| DatabaseCacheTagsChecksum | class | Drupal\Core\Cache | core/ |
Cache tags invalidations checksum implementation that uses the database. | 2 | |||
| 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. | 4 | 2 | ||
| DatabaseDriverListTest | class | Drupal\Tests\Core\Extension | core/ |
Tests DatabaseDriverList methods. | ||||
| DatabaseDriverProvidedByModuleTest | class | Drupal\Tests\system\Functional\System | core/ |
Tests output on the status overview page. | ||||
| DatabaseDriverUninstallValidator | class | Drupal\Core\Extension | core/ |
Ensures installed modules providing a database driver are not uninstalled. | 2 | |||
| DatabaseEvent | abstract class | Drupal\Core\Database\Event | core/ |
Represents a database event. | 2 | 4 | ||
| DatabaseEventEnabler | class | Drupal\performance_test | core/ |
Enables database event logging for the main request. | ||||
| DatabaseEventsTest | class | Drupal\Tests\Core\Database | core/ |
Tests Drupal\Core\Database\Connection. | ||||
| DatabaseEventSubscriber | class | Drupal\database_test\EventSubscriber | core/ |
Responds to database API events. | 1 | |||
| DatabaseEventTest | class | Drupal\KernelTests\Core\Database | core/ |
Tests the database API events. | ||||
| DatabaseException | interface | Drupal\Core\Database | core/ |
Interface for a database exception. | 24 | 25 | ||
| DatabaseExceptionWrapper | class | Drupal\Core\Database | core/ |
This wrapper class serves only to provide additional debug information. | 1 | 30 | ||
| DatabaseExceptionWrapperTest | class | Drupal\Tests\mysqli\Kernel\mysqli | core/ |
Tests exceptions thrown by queries. | ||||
| DatabaseExceptionWrapperTest | class | Drupal\KernelTests\Core\Database | core/ |
Tests exceptions thrown by queries. | ||||
| DatabaseExceptionWrapperTest | class | Drupal\Tests\pgsql\Kernel\pgsql | core/ |
Tests exceptions thrown by queries. | ||||
| DatabaseExceptionWrapperTest | class | Drupal\Tests\sqlite\Kernel\sqlite | core/ |
Tests exceptions thrown by queries. | ||||
| DatabaseExceptionWrapperTest | class | Drupal\Tests\mysql\Kernel\mysql | core/ |
Tests exceptions thrown by queries. | 1 | 1 | ||
| 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 | 2 | 2 | |
| 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. | 10 | |||
| DatabaseQueue | class | Drupal\Core\Queue | core/ |
Default queue implementation. | 1 | 3 | ||
| DatabaseStorage | class | Drupal\Core\Config | core/ |
Defines the Database storage. | 3 | 3 | ||
| 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. | 1 | |||
| DatabaseStorageExpirableTest | class | Drupal\KernelTests\Core\KeyValueStore | core/ |
Tests the key-value database storage. | ||||
| DatabaseStorageTest | class | Drupal\KernelTests\Core\KeyValueStore | core/ |
Tests the key-value database storage. | ||||
| DatabaseStorageTest | class | Drupal\KernelTests\Core\Config\Storage | core/ |
Tests DatabaseStorage operations. | ||||
| DatabaseTestBase | abstract class | Drupal\KernelTests\Core\Database | core/ |
Base class for databases database tests. | 32 | |||
| DatabaseTestBase | abstract class | Drupal\Tests\system\Functional\Database | core/ |
Base class for databases database tests. | 2 | |||
| DatabaseTestController | class | Drupal\database_test\Controller | core/ |
Controller routines for database_test routes. | ||||
| DatabaseTestForm | class | Drupal\database_test\Form | core/ |
Form controller for database_test module. | 1 | |||
| DatabaseTestHooks | class | Drupal\database_test\Hook | core/ |
Hook implementations for database_test. | ||||
| DatabaseTestSchemaDataTrait | trait | Drupal\KernelTests\Core\Database | core/ |
Trait to manage data samples for test tables. | 2 | |||
| DatabaseTestSchemaInstallTrait | trait | Drupal\KernelTests\Core\Database | core/ |
Trait to manage installation for test tables. | 1 | |||
| DataCommand | class | Drupal\Core\Ajax | core/ |
An AJAX command for implementing jQuery's data() method. | 2 | |||
| DataDefinition | class | Drupal\Core\TypedData | core/ |
A typed data definition class for defining data based on defined data types. | 5 | 72 | ||
| DataDefinitionInterface | interface | Drupal\Core\TypedData | core/ |
Interface for data definitions. | 4 | 22 | ||
| 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. | ||||
| DataNormalizer | class | Drupal\jsonapi\Normalizer | core/ |
Normalizes JSON:API Data objects. | 2 | |||
| DataReferenceBase | abstract class | Drupal\Core\TypedData | core/ |
Base class for typed data references. | 2 | 2 | ||
| DataReferenceDefinition | class | Drupal\Core\TypedData | core/ |
A typed data definition class for defining references. | 7 | |||
| DataReferenceDefinitionInterface | interface | Drupal\Core\TypedData | core/ |
Interface for typed data references. | 1 | 7 | ||
| DataReferenceInterface | interface | Drupal\Core\TypedData | core/ |
Interface for typed data references. | 1 | 1 | ||
| DataReferenceTargetDefinition | class | Drupal\Core\TypedData | core/ |
A typed data definition class for the entity reference target_id property. | 5 | |||
| DataType | class | Drupal\Core\TypedData\Attribute | core/ |
Defines a data type attribute. | 26 | |||
| DataType | class | Drupal\Core\TypedData\Annotation | core/ |
Defines a data type annotation object. | 1 | 1 |
Pagination
- Previous page
- Page 46
- Next page
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.