Classes, traits, and interfaces - Drupal 11.1.x - Drupal Core
Primary tabs
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 |
---|---|---|---|---|---|---|---|---|
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. | ||||
DblogFilterForm | class | Drupal\dblog\Form | core/ |
Provides the database logging filter form. | ||||
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. | ||||
DblogTypes | class | Drupal\dblog\Plugin\views\filter | core/ |
Exposes log types to views module. | ||||
DblogViewsHooks | class | Drupal\dblog\Hook | core/ |
Hook implementations for dblog. | ||||
DbQuerySniff | class | DrupalPractice\Sniffs\FunctionCalls | vendor/ |
Check that UPDATE/DELETE queries are not used in db_query() in Drupal 7. | ||||
DbSelectBracesSniff | class | DrupalPractice\Sniffs\FunctionCalls | vendor/ |
Check that db_select() calls do not use {} braces for the table name. | ||||
DbToolsApplication | class | Drupal\Core\Command | core/ |
Provides a command to import a database generation script. | 1 | |||
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 | |||
DceSecurityException | class | Ramsey\Uuid\Exception | vendor/ |
Thrown to indicate an exception occurred while dealing with DCE Security (version 2) UUIDs | 2 | |||
DceSecurityGenerator | class | Ramsey\Uuid\Generator | vendor/ |
DceSecurityGenerator generates strings of binary data based on a local domain, local identifier, node ID, clock sequence, and the current time | 1 | |||
DceSecurityGeneratorInterface | interface | Ramsey\Uuid\Generator | vendor/ |
A DCE Security generator generates strings of binary data based on a local domain, local identifier, node ID, clock sequence, and the current time | 1 | 2 | ||
DceSecurityProviderInterface | interface | Ramsey\Uuid\Provider | vendor/ |
A DCE provider provides access to local domain identifiers for version 2, DCE Security, UUIDs | 1 | 3 | ||
DeadCatchSniff | class | SlevomatCodingStandard\Sniffs\Exceptions | vendor/ |
|||||
DeadCodeDetectionNotSupportedException | final class | SebastianBergmann\CodeCoverage | vendor/ |
1 | ||||
Debug | class | Symfony\Component\ErrorHandler | vendor/ |
Registers all the debug tools. | ||||
DebugClassLoader | class | Symfony\Component\ErrorHandler | vendor/ |
Autoloader checking if the class is really defined in the file found. | 5 | |||
DebugCodeSniff | class | PHP_CodeSniffer\Standards\MySource\Sniffs\Debug | vendor/ |
|||||
DebugCommand | class | Symfony\Component\Validator\Command | vendor/ |
A console command to debug Validators information. | ||||
DebugCommand | class | Symfony\Component\Serializer\Command | vendor/ |
A console command to debug Serializer information. | ||||
DebugExtension | final class | Twig\Extension | vendor/ |
1 | ||||
DebugExtension | final class | Drupal\Core\Template | core/ |
A class providing Drupal Twig Debug extension. | ||||
DebugFormatterHelper | class | Symfony\Component\Console\Helper | vendor/ |
Helps outputting debug information when running an external program from a command. | 1 | |||
DebuggerStatement | class | Peast\Syntax\Node | vendor/ |
A node that represents a debugger statement. For example: debugger; | ||||
DebugHandlersListener | class | Symfony\Component\HttpKernel\EventListener | vendor/ |
Sets an exception handler. | ||||
DebugLoggerConfigurator | class | Symfony\Component\HttpKernel\Log | vendor/ |
@author Nicolas Grekas <p@tchwork.com> | 3 | |||
DebugLoggerInterface | interface | Symfony\Component\HttpKernel\Log | vendor/ |
DebugLoggerInterface. | 1 | 1 | ||
DebugScope | final class | OpenTelemetry\Context | vendor/ |
@internal | ||||
DecibelInstaller | class | Composer\Installers | vendor/ |
|||||
Decimal | final class | Ramsey\Uuid\Type | vendor/ |
A value object representing a decimal | 1 | |||
DecimalData | class | Drupal\Core\TypedData\Plugin\DataType | core/ |
The decimal data type. | ||||
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 | 2 | ||
DecimalItem | class | Drupal\Core\Field\Plugin\Field\FieldType | core/ |
Defines the 'decimal' field type. | ||||
Decisions | class | Composer\DependencyResolver | vendor/ |
Stores decisions on installing, removing or keeping packages | ||||
Declaration | interface | Peast\Syntax\Node | vendor/ |
Interface that every declaration node must implement. | 3 | 1 | ||
Declaration | abstract class | PhpParser\Builder | vendor/ |
6 | ||||
DeclareItem | class | PhpParser\Node | vendor/ |
1 | ||||
DeclareStatementSniff | class | PHP_CodeSniffer\Standards\PSR12\Sniffs\Files | vendor/ |
|||||
DeclareStrictTypesSniff | class | SlevomatCodingStandard\Sniffs\TypeHints | vendor/ |
|||||
Declare_ | class | PhpParser\Node\Stmt | vendor/ |
|||||
DecoderInterface | interface | Symfony\Component\Serializer\Encoder | vendor/ |
@author Jordi Boggiano <j.boggiano@seld.be> | 9 | 4 | ||
DecorateTrait | trait | Symfony\Component\DependencyInjection\Loader\Configurator\Traits | vendor/ |
|||||
DecoratorServicePass | class | Symfony\Component\DependencyInjection\Compiler | vendor/ |
Overwrites a service but keeps the overridden one. |