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 |
---|---|---|---|---|---|---|---|---|
EqualBinary | class | Twig\Node\Expression\Binary | vendor/ |
1 | ||||
Equality | class | Drupal\views\Plugin\views\filter | core/ |
Simple filter to handle equal to / not equal to filters. | ||||
EqualTo | class | Symfony\Component\Validator\Constraints | vendor/ |
Validates that a value is equal to another value. | ||||
EqualToValidator | class | Symfony\Component\Validator\Constraints | vendor/ |
Validates values are equal (==). | ||||
EquivalentUpdate | final class | Drupal\Core\Update | core/ |
Value object to hold information about an equivalent update. | 2 | |||
Error | class | PhpParser\Node\Expr | vendor/ |
Error node used during parsing with error recovery. | ||||
Error | class | Twig\Error | vendor/ |
Twig base exception. | 4 | 4 | ||
Error | class | Drupal\Core\Utility | core/ |
Drupal error utility class. | 29 | |||
Error | final class | PHPUnit\Framework\TestStatus | vendor/ |
@psalm-immutable | ||||
Error | class | PhpParser | vendor/ |
10 | ||||
ErrorCollection | class | Drupal\jsonapi\JsonApiResource | core/ |
To be used when the primary data is `errors`. | 3 | |||
ErrorController | class | Symfony\Component\HttpKernel\Controller | vendor/ |
Renders error or exception pages from a given FlattenException. | ||||
Errored | final class | PHPUnit\Event\Test | vendor/ |
@psalm-immutable | 13 | |||
ErroredSubscriber | interface | PHPUnit\Event\Test | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | 6 | 6 | ||
ErrorEnhancerInterface | interface | Symfony\Component\ErrorHandler\ErrorEnhancer | vendor/ |
3 | 1 | |||
ErrorException | final class | PHPUnit\Runner | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | 1 | |||
ErrorFuture | final class | OpenTelemetry\SDK\Common\Future | vendor/ |
@psalm-suppress MissingTemplateParam | 2 | |||
ErrorHandler | class | Symfony\Component\ErrorHandler | vendor/ |
A generic ErrorHandler for the PHP engine. | 4 | |||
ErrorHandler | interface | PhpParser | vendor/ |
2 | 4 | |||
ErrorHandler | final class | PHPUnit\Runner | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | 2 | |||
ErrorHandler | class | Composer\Util | vendor/ |
Convert PHP errors into exceptions | 1 | |||
ErrorHandlerConfigurator | class | Symfony\Component\HttpKernel\Debug | vendor/ |
Configures the error handler. | ||||
ErrorListener | class | Symfony\Component\Console\EventListener | vendor/ |
@author James Halsall <james.t.halsall@googlemail.com> @author Robin Chalas <robin.chalas@gmail.com> | ||||
ErrorListener | class | Symfony\Component\HttpKernel\EventListener | vendor/ |
@author Fabien Potencier <fabien@symfony.com> | ||||
ErrorLogWriter | class | OpenTelemetry\API\Behavior\Internal\LogWriter | vendor/ |
1 | ||||
ErrorRendererInterface | interface | Symfony\Component\ErrorHandler\ErrorRenderer | vendor/ |
Formats an exception to be used as response content. | 3 | 1 | ||
ErrorSuppress | class | PhpParser\Node\Expr | vendor/ |
|||||
ErrorTriggered | final class | PHPUnit\Event\Test | vendor/ |
@psalm-immutable | 5 | |||
ErrorTriggeredSubscriber | interface | PHPUnit\Event\Test | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | 2 | 2 | ||
Escaper | class | Behat\Mink\Selector\Xpath | vendor/ |
XPath escaper. | 3 | |||
Escaper | class | Symfony\Component\Yaml | vendor/ |
Escaper encapsulates escaping rules for single and double-quoted YAML strings. | ||||
EscaperExtension | final class | Twig\Extension | vendor/ |
3 | ||||
EscaperNodeVisitor | final class | Twig\NodeVisitor | vendor/ |
@author Fabien Potencier <fabien@symfony.com> | 1 | |||
EscaperRuntime | final class | Twig\Runtime | vendor/ |
4 | ||||
Esi | class | Symfony\Component\HttpKernel\HttpCache | vendor/ |
Esi implements the ESI capabilities to Request and Response instances. | ||||
EsiFragmentRenderer | class | Symfony\Component\HttpKernel\Fragment | vendor/ |
Implements the ESI rendering strategy. | ||||
ESLintSniff | class | PHP_CodeSniffer\Standards\Generic\Sniffs\Debug | vendor/ |
|||||
EsmtpTransport | class | Symfony\Component\Mailer\Transport\Smtp | vendor/ |
Sends Emails over SMTP with ESMTP support. | 5 | |||
EsmtpTransportFactory | final class | Symfony\Component\Mailer\Transport\Smtp | vendor/ |
@author Konstantin Myakshin <molodchick@gmail.com> | 1 | |||
EvalObjectFactorySniff | class | PHP_CodeSniffer\Standards\MySource\Sniffs\PHP | vendor/ |
|||||
EvalSniff | class | PHP_CodeSniffer\Standards\Squiz\Sniffs\PHP | vendor/ |
|||||
Eval_ | class | PhpParser\Node\Expr | vendor/ |
|||||
EvDriver | final class | Revolt\EventLoop\Driver | vendor/ |
1 | ||||
Event | final class | OpenTelemetry\SDK\Trace | vendor/ |
|||||
Event | class | Composer\EventDispatcher | vendor/ |
The base event class | 8 | 9 | ||
Event | class | Composer\Script | vendor/ |
The script event class | 12 | |||
Event | class | Drupal\Component\EventDispatcher | core/ |
Provides a forward-compatibility layer for the Symfony 5 event class. | 28 | 30 | ||
Event | class | Symfony\Contracts\EventDispatcher | vendor/ |
Event is the base class for classes containing event data. | 11 | 12 | ||
Event | interface | PHPUnit\Event | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | 71 | 75 | ||
Event | class | Opentelemetry\Proto\Trace\V1\Span | vendor/ |
Event is a time-stamped annotation of the span, consisting of user-supplied text description and key-value pairs. | 1 |