Classes, traits, and interfaces - 10.3.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 1518
Name | Deprecated | Object type | Namespace | File name | Summary | Direct uses | Use statements | Strings |
---|---|---|---|---|---|---|---|---|
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. | 9 | |||
DatabaseQueue | class | Drupal\Core\Queue | core/ |
Default queue implementation. | 1 | 3 | ||
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\Config\Storage | core/ |
Tests DatabaseStorage operations. | ||||
DatabaseStorageTest | class | Drupal\KernelTests\Core\KeyValueStore | core/ |
Tests the key-value database storage. | ||||
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 | |||
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 | |||
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 | |||
DatabaseVersionCheckUpdateTest | class | Drupal\Tests\system\Functional\Update | core/ |
Tests that updates fail if the database does not meet the minimum version. | ||||
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 | 61 | ||
DataDefinitionInterface | interface | Drupal\Core\TypedData | core/ |
Interface for data definitions. | 4 | 13 | ||
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. | 6 | |||
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. | 25 | |||
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\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 | ||
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 | ||
DateElementBase | abstract class | Drupal\Core\Datetime\Element | core/ |
Provides a base class for date elements. | 2 | |||
DateField | class | Drupal\datetime\Plugin\migrate\field | core/ |
Provides a field plugin for date and time fields. | 1 | |||
DateFieldTest | class | Drupal\Tests\datetime\Unit\Plugin\migrate\field | core/ |
Provides unit tests for the DateField Plugin. | ||||
DateFilterTest | class | Drupal\Tests\datetime\Functional | core/ |
Test exposed datetime filters functionality. | ||||
DateFormat | class | Drupal\config_translation\FormElement | core/ |
Defines the date format element for the configuration translation interface. | ||||
DateFormat | class | Drupal\Core\Datetime\Entity | core/ |
Defines the Date Format configuration entity class. | 24 | |||
DateFormatAccessControlHandler | class | Drupal\system | core/ |
Defines the access control handler for the date format entity type. | ||||
DateFormatAccessControlHandlerTest | class | Drupal\Tests\system\Kernel | core/ |
@coversDefaultClass \Drupal\system\DateFormatAccessControlHandler[[api-linebreak]] @group system | ||||
DateFormatAddForm | class | Drupal\system\Form | core/ |
Provides a form for adding a date format. | ||||
DateFormatDeleteForm | class | Drupal\system\Form | core/ |
Builds a form to delete a date format. | ||||
DateFormatEditForm | class | Drupal\system\Form | core/ |
Provides a form for editing a date format. |
Pagination
- Previous page
- Page 42
- Next page
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.