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 |
---|---|---|---|---|---|---|---|---|
DolibarrInstaller | class | Composer\Installers | vendor/ |
Class DolibarrInstaller | ||||
DomainAcceptsNoMail | class | Egulias\EmailValidator\Result\Reason | vendor/ |
1 | ||||
DomainComment | class | Egulias\EmailValidator\Parser\CommentStrategy | vendor/ |
1 | ||||
DomainHyphened | class | Egulias\EmailValidator\Result\Reason | vendor/ |
1 | ||||
DomainLiteral | class | Egulias\EmailValidator\Warning | vendor/ |
1 | ||||
DomainLiteral | class | Egulias\EmailValidator\Parser | vendor/ |
1 | ||||
DomainOptions | final class | PhpTuf\ComposerStager\Internal\Translation\Service | vendor/ |
@package Translation | 2 | |||
DomainOptionsInterface | interface | PhpTuf\ComposerStager\API\Translation\Service | vendor/ |
Provides domain values for the translation system. | 1 | 6 | ||
DomainPart | class | Egulias\EmailValidator\Parser | vendor/ |
1 | 1 | |||
DomainTooLong | class | Egulias\EmailValidator\Result\Reason | vendor/ |
1 | ||||
DOMCaster | class | Symfony\Component\VarDumper\Caster | vendor/ |
Casts DOM related classes to array representation. | ||||
DOMNodeComparator | final class | SebastianBergmann\Comparator | vendor/ |
|||||
DOMTreeBuilder | class | Masterminds\HTML5\Parser | vendor/ |
Create an HTML5 DOM tree from events. | 2 | |||
DoNode | class | Twig\Node | vendor/ |
Represents a do node. | 1 | |||
DotAtEnd | class | Egulias\EmailValidator\Result\Reason | vendor/ |
2 | ||||
DotAtStart | class | Egulias\EmailValidator\Result\Reason | vendor/ |
2 | ||||
DotDirectory | class | org\bovigo\vfs | vendor/ |
Directory container. | ||||
DoTokenParser | final class | Twig\TokenParser | vendor/ |
Evaluates an expression, discarding the returned value. | 1 | |||
DoTrustedCallbackTrait | trait | Drupal\Core\Security | core/ |
Ensures that only predefined methods can be used as callback methods. | 4 | |||
Double | class | PhpParser\Node\Expr\Cast | vendor/ |
1 | ||||
DoubledCloneMethod | trait | PHPUnit\Framework\MockObject | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | 1 | |||
DoubleEndedQueue | class | Ramsey\Collection | vendor/ |
This class provides a basic implementation of `DoubleEndedQueueInterface`, to minimize the effort required to implement this interface. | ||||
DoubleEndedQueueInterface | interface | Ramsey\Collection | vendor/ |
A linear collection that supports element insertion and removal at both ends. | 1 | |||
DoubleException | class | Prophecy\Exception\Doubler | vendor/ |
4 | 5 | |||
DoubleInterface | interface | Prophecy\Doubler | vendor/ |
Core double interface. All doubled classes will implement this one. | ||||
DoubleQuote | class | Egulias\EmailValidator\Parser | vendor/ |
|||||
DoubleQuoteUsageSniff | class | PHP_CodeSniffer\Standards\Squiz\Sniffs\Strings | vendor/ |
|||||
Doubler | class | Prophecy\Doubler | vendor/ |
Cached class doubler. Prevents mirroring/creation of the same structure twice. | 1 | 1 | ||
DoublerException | interface | Prophecy\Exception\Doubler | vendor/ |
3 | ||||
DoubleValue | class | Google\Protobuf | vendor/ |
Wrapper message for `double`. The JSON representation for `DoubleValue` is JSON number. | ||||
DoWhileStatement | class | Peast\Syntax\Node | vendor/ |
A node that represents a do-while loop. For example: do {} while (test) | ||||
Download | class | Drupal\migrate\Plugin\migrate\process | core/ |
Downloads a file from a HTTP(S) remote location into the local file system. | ||||
Downloader | interface | PHPUnit\Util\Http | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | 1 | 1 | ||
DownloaderInterface | interface | Composer\Downloader | vendor/ |
Downloader interface. | 2 | 1 | ||
DownloadManager | class | Composer\Downloader | vendor/ |
Downloaders manager. | 6 | |||
Do_ | class | PhpParser\Node\Stmt | vendor/ |
|||||
DraftEmail | class | Symfony\Component\Mime | vendor/ |
@author Kevin Bond <kevinbond@gmail.com> | ||||
DraggableListBuilder | abstract class | Drupal\Core\Config\Entity | core/ |
Defines a class to build a draggable listing of configuration entities. | 5 | 5 | ||
DraggableListBuilderTrait | trait | Drupal\Core\Entity | core/ |
Provides a trait for draggable listings of entities. | 1 | |||
Driver | interface | Revolt\EventLoop | vendor/ |
The driver MUST run in its own fiber and execute callbacks in a separate fiber. If fibers are reused, the driver needs to call { | 2 | 3 | ||
Driver | abstract class | SebastianBergmann\CodeCoverage\Driver | vendor/ |
@internal This class is not covered by the backward compatibility promise for phpunit/php-code-coverage | 2 | 4 | ||
DriverCallback | abstract class | Revolt\EventLoop\Internal | vendor/ |
@internal | 4 | 5 | ||
DriverException | class | Behat\Mink\Exception | vendor/ |
Exception thrown by drivers when they fail to perform an action. | 1 | 5 | ||
DriverFactory | final class | Revolt\EventLoop | vendor/ |
1 | ||||
DriverInterface | interface | Behat\Mink\Driver | vendor/ |
Driver interface. | 1 | 7 | ||
DriverNotSpecifiedException | class | Drupal\Core\Database | core/ |
Exception thrown if no driver is specified for a database connection. | ||||
DriverSuspension | final class | Revolt\EventLoop\Internal | vendor/ |
@internal | ||||
Dropbutton | class | Drupal\Core\Render\Element | core/ |
Provides a render element for a set of links rendered as a drop-down button. | 1 | |||
Dropbutton | class | Drupal\views\Plugin\views\field | core/ |
Provides a handler that renders links as dropbutton. | ||||
DroppingStream | final class | GuzzleHttp\Psr7 | vendor/ |
Stream decorator that begins dropping data once the size of the underlying stream becomes too full. |