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 |
---|---|---|---|---|---|---|---|---|
DerivativeDiscoveryDecorator | class | Drupal\Component\Plugin\Discovery | core/ |
Base class providing the tools for a plugin discovery to be derivative aware. | 1 | 1 | ||
DerivativeInspectionInterface | interface | Drupal\Component\Plugin | core/ |
Provides a plugin interface for providing derivative metadata inspection. | 8 | 10 | ||
DeriverBase | abstract class | Drupal\Component\Plugin\Derivative | core/ |
Provides a basic deriver. | 42 | 42 | ||
DeriverInterface | interface | Drupal\Component\Plugin\Derivative | core/ |
Provides additional plugin definitions based on an existing definition. | 2 | 1 | ||
Desaturate | class | Drupal\system\Plugin\ImageToolkit\Operation\gd | core/ |
Defines GD2 Desaturate operation. | ||||
DesaturateImageEffect | class | Drupal\image\Plugin\ImageEffect | core/ |
Desaturates (grayscale) an image resource. | ||||
Description | class | phpDocumentor\Reflection\DocBlock | vendor/ |
Object representing to description for a DocBlock. | 25 | |||
DescriptionAwareFileFormatterBase | abstract class | Drupal\file\Plugin\Field\FieldFormatter | core/ |
Base class for file formatters that have to deal with file descriptions. | 2 | |||
DescriptionFactory | class | phpDocumentor\Reflection\DocBlock | vendor/ |
Creates a new Description object given a body of text. | 32 | |||
DescriptionSniff | class | DrupalPractice\Sniffs\InfoFiles | vendor/ |
Checks if the *.info.yml file contains a description. | ||||
DescriptionTSniff | class | DrupalPractice\Sniffs\General | vendor/ |
Checks that string values for #description in render arrays are translated. | ||||
Descriptor | abstract class | Symfony\Component\Console\Descriptor | vendor/ |
@author Jean-François Simon <jeanfrancois.simon@sensiolabs.com> | 5 | |||
Descriptor | class | Google\Protobuf\Internal | vendor/ |
2 | ||||
Descriptor | class | Google\Protobuf | vendor/ |
1 | ||||
Descriptor | class | GPBMetadata\Google\Protobuf\Internal | vendor/ |
|||||
DescriptorHelper | class | Symfony\Component\Console\Helper | vendor/ |
This class adds helper method to describe objects in various formats. | 3 | |||
DescriptorInterface | interface | Symfony\Component\Console\Descriptor | vendor/ |
Descriptor interface. | 1 | 1 | ||
DescriptorPool | class | Google\Protobuf | vendor/ |
1 | ||||
DescriptorPool | class | Google\Protobuf\Internal | vendor/ |
1 | ||||
DescriptorProto | class | Google\Protobuf\Internal | vendor/ |
Describes a message type. | ||||
DestinationBase | abstract class | Drupal\migrate\Plugin\migrate\destination | core/ |
Base class for migrate destination classes. | 8 | 4 | ||
DestructableInterface | interface | Drupal\Core | core/ |
The interface for services that need explicit destruction. | 7 | 5 | ||
DetachedShadowRoot | final class | WebDriver\Exception | vendor/ |
WebDriver\Exception\DetachedShadowRoot class | ||||
DetailedReason | abstract class | Egulias\EmailValidator\Result\Reason | vendor/ |
2 | ||||
Details | class | Drupal\Core\Render\Element | core/ |
Provides a render element for a details element, similar to a fieldset. | ||||
DevelopmentSettingsForm | class | Drupal\system\Form | core/ |
Configure development settings for this site. | 1 | |||
DevelopmentSettingsPass | class | Drupal\Core\DependencyInjection\Compiler | core/ |
Defines a compiler pass to register development settings. | 1 | |||
DframeInstaller | class | Composer\Installers | vendor/ |
|||||
DiagnoseCommand | class | Composer\Command | vendor/ |
@author Jordi Boggiano <j.boggiano@seld.be> | ||||
DialogRenderer | class | Drupal\Core\Render\MainContent | core/ |
Default main content renderer for dialog requests. | 2 | |||
Diff | class | PHP_CodeSniffer\Reports | vendor/ |
|||||
Diff | final class | SebastianBergmann\Diff | vendor/ |
@template-implements IteratorAggregate<int, Chunk> | 1 | |||
Diff | class | Drupal\Component\Diff | core/ |
Class representing a 'diff' between two sequences of strings. | 1 | 1 | ||
DiffArray | class | Drupal\Component\Utility | core/ |
Provides helpers to perform diffs on multi dimensional arrays. | 2 | |||
DiffElem | class | PHPStan\PhpDocParser\Printer | vendor/ |
Inspired by https://github.com/nikic/PHP-Parser/tree/36a6dcd04e7b0285e8f0868f44bd4927802f7df1 | ||||
DiffElem | class | PhpParser\Internal | vendor/ |
@internal | 1 | |||
Differ | final class | SebastianBergmann\Diff | vendor/ |
8 | ||||
Differ | class | PHPStan\PhpDocParser\Printer | vendor/ |
Inspired by https://github.com/nikic/PHP-Parser/tree/36a6dcd04e7b0285e8f0868f44bd4927802f7df1 | ||||
Differ | class | PhpParser\Internal | vendor/ |
Implements the Myers diff algorithm. | 1 | |||
DiffFormatter | class | Drupal\Component\Diff | core/ |
A class to format Diffs | 1 | 1 | ||
DiffFormatter | class | Drupal\Core\Diff | core/ |
Diff formatter which uses returns output that can be rendered to a table. | 1 | |||
DiffOnlyOutputBuilder | final class | SebastianBergmann\Diff\Output | vendor/ |
Builds a diff string representation in a loose unified diff format listing only changes lines. Does not include line numbers. | ||||
DiffOp | class | Drupal\Component\Diff\Engine | core/ |
@todo document @private @subpackage DifferenceEngine | 4 | 1 | ||
DiffOpAdd | class | Drupal\Component\Diff\Engine | core/ |
@todo document @private @subpackage DifferenceEngine | 1 | |||
DiffOpChange | class | Drupal\Component\Diff\Engine | core/ |
@todo document @private @subpackage DifferenceEngine | 1 | |||
DiffOpCopy | class | Drupal\Component\Diff\Engine | core/ |
@todo document @private @subpackage DifferenceEngine | 2 | |||
DiffOpDelete | class | Drupal\Component\Diff\Engine | core/ |
@todo document @private @subpackage DifferenceEngine | 1 | |||
DiffOpOutputBuilder | final class | Drupal\Component\Diff | core/ |
Returns a diff as an array of DiffOp operations. | ||||
DiffOutputBuilderInterface | interface | SebastianBergmann\Diff\Output | vendor/ |
Defines how an output builder should take a generated diff array and return a string representation of that diff. | 4 | 2 | ||
DigestPart | final class | Symfony\Component\Mime\Part\Multipart | vendor/ |
@author Fabien Potencier <fabien@symfony.com> |