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 |
---|---|---|---|---|---|---|---|---|
DisplayPluginCollection | class | Drupal\views | core/ |
A class which wraps the displays of a view so you can lazy-initialize them. | ||||
DisplayPluginInterface | interface | Drupal\views\Plugin\views\display | core/ |
Provides an interface for Views display plugins. | 3 | |||
DisplayRouterInterface | interface | Drupal\views\Plugin\views\display | core/ |
Defines an interface for displays that can collect routes. | 1 | 2 | ||
DisplayVariant | class | Drupal\Core\Display\Attribute | core/ |
Defines a display variant attribute object. | 1 | 1 | ||
DisplayVariant | class | Drupal\Core\Display\Annotation | core/ |
Defines a display variant annotation object. | 1 | |||
Div | class | PhpParser\Node\Expr\BinaryOp | vendor/ |
|||||
Div | class | PhpParser\Node\Expr\AssignOp | vendor/ |
|||||
DivBinary | class | Twig\Node\Expression\Binary | vendor/ |
1 | ||||
DivisibleBy | class | Symfony\Component\Validator\Constraints | vendor/ |
Validates that a value is divisible by another value. | ||||
DivisiblebyTest | class | Twig\Node\Expression\Test | vendor/ |
Checks if a variable is divisible by a number. | 1 | |||
DivisibleByValidator | class | Symfony\Component\Validator\Constraints | vendor/ |
Validates that values are a multiple of the given number. | ||||
DivisionByZeroException | class | Brick\Math\Exception | vendor/ |
Exception thrown when a division by zero occurs. | 4 | |||
DkimOptions | final class | Symfony\Component\Mime\Crypto | vendor/ |
A helper providing autocompletion for available DkimSigner options. | ||||
DkimSigner | final class | Symfony\Component\Mime\Crypto | vendor/ |
@author Fabien Potencier <fabien@symfony.com> | ||||
DNSCheckValidation | class | Egulias\EmailValidator\Validation | vendor/ |
|||||
DNSGetRecordWrapper | class | Egulias\EmailValidator\Validation | vendor/ |
|||||
DNSRecords | class | Egulias\EmailValidator\Validation | vendor/ |
|||||
Doc | class | PhpParser\Comment | vendor/ |
1 | ||||
DocBlock | final class | phpDocumentor\Reflection | vendor/ |
2 | ||||
DocBlock | final class | PHPUnit\Metadata\Annotation\Parser | vendor/ |
This is an abstraction around a PHPUnit-specific docBlock, allowing us to ask meaningful questions about a specific reflection symbol. | ||||
DocBlockFactory | final class | phpDocumentor\Reflection | vendor/ |
1 | ||||
DocBlockFactoryInterface | interface | phpDocumentor\Reflection | vendor/ |
1 | ||||
DocCommentAlignmentSniff | class | Drupal\Sniffs\Commenting | vendor/ |
Largely copied from \PHP_CodeSniffer\Standards\Squiz\Sniffs\Commenting\DocCommentAlignmentSniff to also handle the "var" keyword. See https://github.com/squizlabs/PHP_CodeSniffer/pull/1212 | ||||
DocCommentAlignmentSniff | class | PHP_CodeSniffer\Standards\Squiz\Sniffs\Commenting | vendor/ |
|||||
DocCommentHelper | class | SlevomatCodingStandard\Helpers | vendor/ |
@internal | 20 | |||
DocCommentLongArraySyntaxSniff | class | Drupal\Sniffs\Commenting | vendor/ |
Ensures @code annotations in doc blocks don't contain long array syntax. | ||||
DocCommentSniff | class | Drupal\Sniffs\Commenting | vendor/ |
Ensures doc blocks follow basic formatting. | ||||
DocCommentSniff | class | PHP_CodeSniffer\Standards\Generic\Sniffs\Commenting | vendor/ |
|||||
DocCommentSpacingSniff | class | SlevomatCodingStandard\Sniffs\Commenting | vendor/ |
|||||
DocCommentStarSniff | class | Drupal\Sniffs\Commenting | vendor/ |
Checks that a doc comment block has a doc comment star on every line. | ||||
DocLexer | final class | Doctrine\Common\Annotations | vendor/ |
Simple lexer for docblock annotations. | 1 | |||
DocParser | final class | Drupal\Component\Annotation\Doctrine | core/ |
A parser for docblock annotations. | ||||
DocParser | final class | Doctrine\Common\Annotations | vendor/ |
A parser for docblock annotations. | ||||
DoctrineAnnotation | class | PHPStan\PhpDocParser\Ast\PhpDoc\Doctrine | vendor/ |
2 | ||||
DoctrineArgument | class | PHPStan\PhpDocParser\Ast\PhpDoc\Doctrine | vendor/ |
@phpstan-type ValueType = DoctrineAnnotation|IdentifierTypeNode|DoctrineArray|ConstExprNode | 2 | |||
DoctrineArray | class | PHPStan\PhpDocParser\Ast\PhpDoc\Doctrine | vendor/ |
1 | ||||
DoctrineArrayItem | class | PHPStan\PhpDocParser\Ast\PhpDoc\Doctrine | vendor/ |
@phpstan-import-type ValueType from DoctrineArgument @phpstan-type KeyType = ConstExprIntegerNode|ConstExprStringNode|IdentifierTypeNode|ConstFetchNode|null | 1 | |||
DoctrineCaster | class | Symfony\Component\VarDumper\Caster | vendor/ |
Casts Doctrine related classes to array representation. | ||||
DoctrineCollectionFilter | class | DeepCopy\Filter\Doctrine | vendor/ |
@final | ||||
DoctrineConstExprStringNode | class | PHPStan\PhpDocParser\Ast\ConstExpr | vendor/ |
|||||
DoctrineDbalPostgreSqlStore | class | Symfony\Component\Lock\Store | vendor/ |
DoctrineDbalPostgreSqlStore is a PersistingStoreInterface implementation using PostgreSql advisory locks with a Doctrine DBAL Connection. | ||||
DoctrineDbalStore | class | Symfony\Component\Lock\Store | vendor/ |
DbalStore is a PersistingStoreInterface implementation using a Doctrine DBAL connection. | ||||
DoctrineEmptyCollectionFilter | class | DeepCopy\Filter\Doctrine | vendor/ |
@final | ||||
DoctrineProxyFilter | class | DeepCopy\Filter\Doctrine | vendor/ |
@final | ||||
DoctrineProxyMatcher | class | DeepCopy\Matcher\Doctrine | vendor/ |
@final | ||||
DoctrineTagValueNode | class | PHPStan\PhpDocParser\Ast\PhpDoc\Doctrine | vendor/ |
2 | ||||
DocumentElement | class | Behat\Mink\Element | vendor/ |
Document element. | 1 | |||
DoesNotPerformAssertions | final class | PHPUnit\Framework\Attributes | vendor/ |
@psalm-immutable | 1 | |||
DoesNotPerformAssertions | final class | PHPUnit\Metadata | vendor/ |
@psalm-immutable | ||||
DokuWikiInstaller | class | Composer\Installers | vendor/ |