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 |
|---|---|---|---|---|---|---|---|---|
| DateTimeWidgetTest | class | Drupal\Tests\datetime\Functional | core/ |
Tests Datetime widgets functionality. | ||||
| DayDate | class | Drupal\datetime\Plugin\views\argument | core/ |
Argument handler for a day. | ||||
| DayDate | class | Drupal\views\Plugin\views\argument | core/ |
Argument handler for a day (DD) | ||||
| DbCommandBase | class | Drupal\Core\Command | core/ |
Base command that abstracts handling of database connection arguments. | 3 | 1 | ||
| DbCommandBaseTest | class | Drupal\Tests\system\Kernel\Scripts | core/ |
Test that the DbToolsApplication works correctly. | ||||
| DbCommandBaseTester | class | Drupal\Tests\system\Kernel\Scripts | core/ |
Concrete command implementation for testing base features. | ||||
| DbDumpApplication | class | Drupal\Core\Command | core/ |
Provides a command to dump a database generation script. | 2 | |||
| DbDumpCommand | class | Drupal\Core\Command | core/ |
Provides a command to dump the current database to a script. | 1 | |||
| DbDumpCommandTest | class | Drupal\Tests\mysql\Kernel\mysql\Console | core/ |
Test that the DbDumpCommand works correctly. | ||||
| DbDumpTest | class | Drupal\Tests\mysql\Kernel\mysql | core/ |
Tests for the database dump commands. | ||||
| DbImportCommand | class | Drupal\Core\Command | core/ |
Provides a command to import the current database from a script. | 1 | |||
| DbImportCommandTest | class | Drupal\Tests\system\Kernel\Scripts | core/ |
Test that the DbImportCommand works correctly. | ||||
| DbLog | class | Drupal\dblog\Logger | core/ |
Logs events in the watchdog database table. | 2 | 2 | ||
| DblogClearLogConfirmForm | class | Drupal\dblog\Form | core/ |
Provides a confirmation form before clearing out the logs. | 1 | |||
| DbLogController | class | Drupal\dblog\Controller | core/ |
Returns responses for dblog routes. | 3 | |||
| DbLogControllerTest | class | Drupal\Tests\dblog\Kernel | core/ |
Tests for the DbLogController class. | ||||
| DblogFilterForm | class | Drupal\dblog\Form | core/ |
Provides the database logging filter form. | ||||
| DbLogFilters | class | Drupal\dblog | core/ |
Filter methods for the dblog module. | 4 | |||
| DbLogFormInjectionTest | class | Drupal\Tests\dblog\Kernel | core/ |
Tests serializing a form with an injected dblog logger instance. | ||||
| DblogHooks | class | Drupal\dblog\Hook | core/ |
Hook implementations for dblog. | ||||
| DblogMessage | class | Drupal\dblog\Plugin\views\field | core/ |
Provides a field handler that renders a log event with replaced variables. | ||||
| DblogOperations | class | Drupal\dblog\Plugin\views\field | core/ |
Provides a field handler that renders operation link markup. | ||||
| DbLogResource | class | Drupal\dblog\Plugin\rest\resource | core/ |
Provides a resource for database watchdog log entries. | ||||
| DbLogResourceTest | class | Drupal\Tests\dblog\Functional | core/ |
Tests the watchdog database log resource. | ||||
| DbLogTest | class | Drupal\Tests\dblog\Kernel | core/ |
Generate events and verify dblog entries. | ||||
| DbLogTest | class | Drupal\Tests\dblog\Functional | core/ |
Verifies log entries and user access based on permissions. | 1 | |||
| DblogTypes | class | Drupal\dblog\Plugin\views\filter | core/ |
Exposes log types to views module. | ||||
| DblogViewsHooks | class | Drupal\dblog\Hook | core/ |
Hook implementations for dblog. | ||||
| DbLogViewsTest | class | Drupal\Tests\dblog\Functional | core/ |
Verifies user access to log reports based on permissions. | ||||
| DbToolsApplication | class | Drupal\Core\Command | core/ |
Provides a command to import a database generation script. | 2 | |||
| DbToolsApplicationTest | class | Drupal\Tests\system\Kernel\Scripts | core/ |
Test that the DbToolsApplication works correctly. | ||||
| DbUpdateAccessCheck | class | Drupal\system\Access | core/ |
Access check for database update routes. | 2 | |||
| DbUpdateController | class | Drupal\system\Controller | core/ |
Controller routines for database update routes. | ||||
| DbUpdateNegotiator | class | Drupal\system\Theme | core/ |
Sets the active theme for the database update pages. | 2 | |||
| DCOM58Test | class | Drupal\Tests\Component\Annotation\Doctrine\Ticket | core/ |
This class is a near-copy of \Doctrine\Tests\Common\Annotations\Ticket\DCOM58Test, which is part of the Doctrine project: <http://www.doctrine-project.org>. It was copied from version 1.2.7. | ||||
| DebugDump | final class | Drupal\TestTools\Extension\Dump | core/ |
Drupal's extension for printing dump() output results. | 4 | |||
| DebugExtension | final class | Drupal\Core\Template | core/ |
A class providing Drupal Twig Debug extension. | 2 | |||
| DecimalData | class | Drupal\Core\TypedData\Plugin\DataType | core/ |
The decimal data type. | 1 | |||
| DecimalFormatter | class | Drupal\Core\Field\Plugin\Field\FieldFormatter | core/ |
Plugin implementation of the 'number_decimal' formatter. | ||||
| DecimalInterface | interface | Drupal\Core\TypedData\Type | core/ |
Interface for decimal numbers. | 1 | 3 | ||
| DecimalItem | class | Drupal\Core\Field\Plugin\Field\FieldType | core/ |
Defines the 'decimal' field type. | ||||
| DecoratedServiceTest | class | Drupal\Tests\system\Kernel | core/ |
Test handling of decorated services with the reverse container. | ||||
| DecoupledMenusTestHooks | class | Drupal\decoupled_menus_test\Hook | core/ |
Hook implementations for decoupled_menus_test. | ||||
| DefaultAccessCheck | class | Drupal\Core\Access | core/ |
Allows access to routes to be controlled by an '_access' boolean parameter. | 2 | 2 | ||
| DefaultAccessCheckTest | class | Drupal\Tests\Core\Access | core/ |
Tests Drupal\Core\Access\DefaultAccessCheck. | ||||
| DefaultConfigTest | class | Drupal\Tests\Core\Extension | core/ |
Tests default configuration of the Extension system. | ||||
| DefaultConfigTest | class | Drupal\KernelTests\Config | core/ |
Tests that the installed config matches the default config. | ||||
| DefaultContentFilesAccessTest | class | Drupal\Tests\demo_umami_content\Functional | core/ |
Tests that files provided by demo_umami_content are not accessible. | ||||
| DefaultContentSubscriber | class | Drupal\media\EventSubscriber | core/ |
Subscribes to default content-related events. | ||||
| DefaultContentSubscriber | class | Drupal\file\EventSubscriber | core/ |
Subscribes to default content-related events. |
Pagination
- Previous page
- Page 49
- Next page
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.