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 |
---|---|---|---|---|---|---|---|---|
EmailValidator | class | Symfony\Component\Validator\Constraints | vendor/ |
@author Bernhard Schussek <bschussek@gmail.com> | 1 | |||
EmailValidator | class | Drupal\Component\Utility | core/ |
Validates email addresses. | ||||
EmailValidatorInterface | interface | Drupal\Component\Utility | core/ |
Validates email addresses. | 1 | 3 | ||
Embed | class | Drupal\views\Plugin\views\display | core/ |
The plugin that handles an embed display. | ||||
EmbeddedDataSource | class | Drupal\migrate\Plugin\migrate\source | core/ |
Allows source data to be defined in the configuration of the source plugin. | ||||
EmbeddedPhpSniff | class | PHP_CodeSniffer\Standards\Squiz\Sniffs\PHP | vendor/ |
|||||
EmbedNode | class | Twig\Node | vendor/ |
Represents an embed node. | 1 | |||
EmbedTokenParser | final class | Twig\TokenParser | vendor/ |
Embeds a template. | 1 | |||
Emitter | interface | PHPUnit\Event | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | 1 | |||
EmptyCatchCommentSniff | class | PHP_CodeSniffer\Standards\Squiz\Sniffs\Commenting | vendor/ |
|||||
EmptyClassDefinitionSniff | class | PHP_CodeSniffer\Standards\Squiz\Sniffs\CSS | vendor/ |
|||||
EmptyCommentSniff | class | SlevomatCodingStandard\Sniffs\Commenting | vendor/ |
|||||
EmptyFileException | class | SlevomatCodingStandard\Helpers | vendor/ |
@internal | ||||
EmptyInstallSniff | class | Drupal\Sniffs\Semantics | vendor/ |
Throws an error if hook_install() or hook_uninstall() definitions are empty. | ||||
EmptyLinesAroundClassBracesSniff | class | SlevomatCodingStandard\Sniffs\Classes | vendor/ |
|||||
EmptyLinesSniff | class | Drupal\Sniffs\WhiteSpace | vendor/ |
\Drupal\Sniffs\WhiteSpace\EmptyLinesSniff. | ||||
EmptyNode | final class | Twig\Node | vendor/ |
Represents an empty node. | 10 | |||
EmptyParameterValueException | class | Symfony\Component\DependencyInjection\Exception | vendor/ |
This exception is thrown when an existent parameter with an empty value is used. | 1 | |||
EmptyPHPStatementSniff | class | PHP_CodeSniffer\Standards\Generic\Sniffs\CodeAnalysis | vendor/ |
|||||
EmptyReason | class | Egulias\EmailValidator\Result\Reason | vendor/ |
1 | ||||
EmptySource | class | Drupal\migrate\Plugin\migrate\source | core/ |
Source returning a row based on the constants provided. | 1 | 1 | ||
EmptySource | class | Drupal\migrate_drupal\Plugin\migrate\source | core/ |
Source returning an empty row with Drupal specific config dependencies. | ||||
EmptyStatement | class | Peast\Syntax\Node | vendor/ |
A node that represents an empty statement (;). | ||||
EmptyStatementSniff | class | PHP_CodeSniffer\Standards\Generic\Sniffs\CodeAnalysis | vendor/ |
|||||
EmptyStringException | final class | PHPUnit\Framework | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | 2 | |||
EmptyStringParser | class | Symfony\Component\CssSelector\Parser\Shortcut | vendor/ |
CSS selector class parser shortcut. | 1 | |||
EmptyStyleDefinitionSniff | class | PHP_CodeSniffer\Standards\Squiz\Sniffs\CSS | vendor/ |
|||||
EmptyValidationList | class | Egulias\EmailValidator\Validation\Exception | vendor/ |
1 | ||||
Empty_ | class | PhpParser\Node\Expr | vendor/ |
|||||
Emulative | class | PhpParser\Lexer | vendor/ |
|||||
EnableAutoMapping | class | Symfony\Component\Validator\Constraints | vendor/ |
Enables auto mapping. | 1 | |||
EnabledConfigurablePluginsConstraint | class | Drupal\ckeditor5\Plugin\Validation\Constraint | core/ |
The CKEditor 5 plugin settings. | ||||
EnabledConfigurablePluginsConstraintValidator | class | Drupal\ckeditor5\Plugin\Validation\Constraint | core/ |
Enabled configurable plugin settings validator. | ||||
EnabledExtensionsValidator | final class | Drupal\package_manager\Validator | core/ |
Validates no enabled Drupal extensions are removed from the stage directory. | ||||
EncoderInterface | interface | Symfony\Component\Serializer\Encoder | vendor/ |
@author Jordi Boggiano <j.boggiano@seld.be> | 9 | 4 | ||
EncoderInterface | interface | Symfony\Component\Mime\Encoder | vendor/ |
@author Chris Corbyn | 4 | |||
EncodingException | class | Peast\Syntax | vendor/ |
Encoding exception class. Encoding errors while scanning the source are thrown using this using this exception class. | ||||
EndFileNewlineSniff | class | PHP_CodeSniffer\Standards\Generic\Sniffs\Files | vendor/ |
|||||
EndFileNewlineSniff | class | Drupal\Sniffs\Files | vendor/ |
Ensures the file ends with a newline character. | ||||
EndFileNewlineSniff | class | PHP_CodeSniffer\Standards\PSR2\Sniffs\Files | vendor/ |
|||||
EndFileNoNewlineSniff | class | PHP_CodeSniffer\Standards\Generic\Sniffs\Files | vendor/ |
|||||
Endpoint | class | Drupal\media\OEmbed | core/ |
Value object for oEmbed provider endpoints. | ||||
EndsWithBinary | class | Twig\Node\Expression\Binary | vendor/ |
1 | ||||
EnforcedFormResponseSubscriber | class | Drupal\Core\EventSubscriber | core/ |
Handle the EnforcedResponseException and deliver an EnforcedResponse. | ||||
EnforcedResponse | class | Drupal\Core\Form | core/ |
A wrapper containing a response which is to be enforced upon delivery. | 1 | |||
EnforcedResponseException | class | Drupal\Core\Form | core/ |
Custom exception to break out of the main request and enforce a response. | 5 | |||
EnglishInflector | final class | Symfony\Component\String\Inflector | vendor/ |
2 | ||||
EnhancerInterface | interface | Drupal\Core\Routing | core/ |
A route enhance service to determine route enhance rules. | 8 | 8 | ||
EnterProfileNode | class | Twig\Profiler\Node | vendor/ |
Represents a profile enter node. | 1 | |||
Entities | class | Masterminds\HTML5 | vendor/ |
Entity lookup tables. This class is automatically generated. | 1 |