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 |
|---|---|---|---|---|---|---|---|---|
| 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. | 6 | |||
| 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. | ||||
| DefaultContentSubscriber | class | Drupal\content_moderation\EventSubscriber | core/ |
Subscribes to default content-related events. | ||||
| DefaultContentSubscriber | class | Drupal\layout_builder\EventSubscriber | core/ |
Subscribes to default content-related events. | ||||
| DefaultContentSubscriber | final class | Drupal\menu_link_content\EventSubscriber | core/ |
Subscribes to default content-related events. | 1 | |||
| DefaultContentSubscriber | class | Drupal\link\EventSubscriber | core/ |
Subscribes to default content-related events. | ||||
| DefaultContentSubscriber | class | Drupal\path\EventSubscriber | core/ |
Subscribes to default content-related events. | ||||
| DefaultContentTest | class | Drupal\Tests\menu_link_content\Kernel | core/ |
Tests exporting menu links in YAML format. | ||||
| DefaultDisplay | class | Drupal\views\Plugin\views\display | core/ |
A plugin to handle defaults on a view. | 3 | |||
| DefaultDisplayExtender | class | Drupal\views\Plugin\views\display_extender | core/ |
Default display extender plugin; does nothing. | ||||
| DefaultExceptionHtmlSubscriber | class | Drupal\Core\EventSubscriber | core/ |
Exception subscriber for handling core default HTML error pages. | 1 | 2 | ||
| DefaultExceptionSubscriber | class | Drupal\jsonapi\EventSubscriber | core/ |
Serializes exceptions in compliance with the JSON:API specification. | 2 | |||
| DefaultExceptionSubscriber | class | Drupal\serialization\EventSubscriber | core/ |
Handles default error responses in serialization formats. | 1 | 2 | 2 | |
| DefaultExceptionSubscriberTest | class | Drupal\Tests\serialization\Unit\EventSubscriber | core/ |
Tests Drupal\serialization\EventSubscriber\DefaultExceptionSubscriber. | ||||
| DefaultFactory | class | Drupal\Component\Plugin\Factory | core/ |
Default plugin factory. | 2 | 13 | ||
| DefaultFactoryTest | class | Drupal\Tests\Component\Plugin | core/ |
Tests Drupal\Component\Plugin\Factory\DefaultFactory. | ||||
| DefaultFileFormatter | class | Drupal\file\Plugin\Field\FieldFormatter | core/ |
Formatter for a text field on a file entity that links the field to the file. | ||||
| DefaultFormatTest | class | Drupal\FunctionalTests\Routing | core/ |
Tests Default Format. | ||||
| DefaultFormatTestController | class | Drupal\default_format_test | core/ |
Controller for testing default route format. | ||||
| DefaultHtmlRouteProvider | class | Drupal\Core\Entity\Routing | core/ |
Provides HTML routes for entities. | 3 | 25 | ||
| DefaultHtmlRouteProviderTest | class | Drupal\Tests\Core\Entity\Routing | core/ |
Tests Drupal\Core\Entity\Routing\DefaultHtmlRouteProvider. | ||||
| DefaultLangcode | class | Drupal\language\Plugin\migrate\destination | core/ |
Provides a destination plugin for the default langcode config. | ||||
| DefaultLanguageItem | class | Drupal\language | core/ |
Alternative plugin implementation of the 'language' field type. | ||||
| DefaultLanguageRenderer | class | Drupal\views\Entity\Render | core/ |
Renders entities in their default language. | ||||
| DefaultLazyPluginCollection | class | Drupal\Core\Plugin | core/ |
Provides a default plugin collection for a plugin type. | 5 | 8 | ||
| DefaultLazyPluginCollectionTest | class | Drupal\Tests\Core\Plugin | core/ |
Tests Drupal\Core\Plugin\DefaultLazyPluginCollection. | ||||
| DefaultMenuLinkTreeManipulators | class | Drupal\Core\Menu | core/ |
Provides a couple of menu link tree manipulators. | 1 | 2 |
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.