Classes, traits, and interfaces - 8.9.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 1511
Name | Deprecated | Object type | Namespace | File name | Summary | Direct uses | Use statements | Strings |
---|---|---|---|---|---|---|---|---|
D7TaxonomyTermDeriver | class | Drupal\taxonomy\Plugin\migrate | core/ |
Deriver for Drupal 7 taxonomy term migrations based on vocabularies. | 2 | |||
Database | abstract class | Drupal\Core\Database | core/ |
Primary front-controller for the database system. | 318 | |||
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. | 2 | 2 | ||
DatabaseBackend | class | Drupal\Core\Cache | core/ |
Defines a default cache implementation. | 4 | |||
DatabaseBackendFactory | class | Drupal\Core\Cache | core/ |
2 | 2 | |||
DatabaseBackendFactoryTest | class | Drupal\Tests\Core\Cache | core/ |
@coversDefaultClass \Drupal\Core\Cache\DatabaseBackendFactory[[api-linebreak]] @group Cache | ||||
DatabaseBackendTagTest | class | Drupal\KernelTests\Core\Cache | core/ |
Tests DatabaseBackend cache tag implementation. | ||||
DatabaseBackendTest | class | Drupal\KernelTests\Core\Cache | core/ |
Unit test of the database backend using the generic cache unit test base. | ||||
DatabaseCacheTagsChecksum | class | Drupal\Core\Cache | core/ |
Cache tags invalidations checksum implementation that uses the database. | 2 | |||
DatabaseException | interface | Drupal\Core\Database | core/ |
Interface for a database exception. | 19 | 19 | ||
DatabaseExceptionWrapper | class | Drupal\Core\Database | core/ |
This wrapper class serves only to provide additional debug information. | 19 | |||
DatabaseExceptionWrapperTest | class | Drupal\KernelTests\Core\Database | core/ |
Tests exceptions thrown by queries. | ||||
DatabaseLegacyTest | class | Drupal\KernelTests\Core\Database | core/ |
Deprecation tests cases for the database layer. | ||||
DatabaseLockBackend | class | Drupal\Core\ProxyClass\Lock | core/ |
Provides a proxy class for \Drupal\Core\Lock\DatabaseLockBackend. | ||||
DatabaseLockBackend | class | Drupal\Core\Lock | core/ |
Defines the database lock backend. This is the default backend in Drupal. | 1 | 3 | 2 | |
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 | 1 | ||
DatabaseStorage | class | Drupal\Core\KeyValueStore | core/ |
Defines a default key/value store implementation. | 1 | |||
DatabaseStorage | class | Drupal\Core\Config | core/ |
Defines the Database storage. | 3 | 3 | ||
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. | ||||
DatabaseTest | class | Drupal\Tests\Core\Database | core/ |
@coversDefaultClass \Drupal\Core\Database\Database[[api-linebreak]] | ||||
DatabaseTestBase | abstract class | Drupal\KernelTests\Core\Database | core/ |
Base class for databases database tests. | 32 | 2 | ||
DatabaseTestBase | abstract class | Drupal\Tests\system\Functional\Database | core/ |
Base class for databases database tests. | 3 | |||
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 | |||
DatabaseWebTestBase | in drupal:8.4.0 and is removed from drupal:9.0.0. Instead use \Drupal\Tests\system\Functional\Database\DatabaseTestBase. |
abstract class | Drupal\system\Tests\Database | core/ |
Base class for databases database tests. | |||
DataCommand | class | Drupal\Core\Ajax | core/ |
An AJAX command for implementing jQuery's data() method. | 3 | |||
DataDefinition | class | Drupal\Core\TypedData | core/ |
A typed data definition class for defining data based on defined data types. | 5 | 52 | ||
DataDefinitionInterface | interface | Drupal\Core\TypedData | core/ |
Interface for data definitions. | 4 | 12 | ||
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. | ||||
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. | 4 | |||
DataReferenceDefinitionInterface | interface | Drupal\Core\TypedData | core/ |
Interface for typed data references. | 1 | 6 | ||
DataReferenceInterface | interface | Drupal\Core\TypedData | core/ |
Interface for typed data references. | 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\Annotation | core/ |
Defines a data type annotation object. | 1 | 1 | ||
Date | class | Drupal\Core\Render\Element | core/ |
Provides a form element for date selection. | ||||
Date | class | Drupal\datetime\Plugin\views\sort | core/ |
Basic sort handler for datetime fields. | ||||
Date | class | Drupal\datetime\Plugin\views\filter | core/ |
Date/time views filter. | ||||
Date | class | Drupal\datetime\Plugin\views\argument | core/ |
Abstract argument handler for dates. | 6 | |||
Date | class | Drupal\views\Plugin\views\sort | core/ |
Basic sort handler for dates. | 2 | 2 | ||
Date | class | Drupal\views\Plugin\views\field | core/ |
A handler to provide proper displays for dates. | 3 | 3 | ||
Date | class | Drupal\views\Plugin\views\filter | core/ |
Filter to handle dates stored as a timestamp. | 2 | 2 | ||
Date | class | Drupal\views\Plugin\views\argument | core/ |
Argument handler for dates. | 7 | 1 | ||
DateElementBase | abstract class | Drupal\Core\Datetime\Element | core/ |
Provides a base class for date elements. | 2 |
Pagination
- Previous page
- Page 33
- Next page
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.