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 |
---|---|---|---|---|---|---|---|---|
Existence | abstract class | Symfony\Component\Validator\Constraints | vendor/ |
@author Bernhard Schussek <bschussek@gmail.com> | 2 | 1 | ||
Exit_ | class | PhpParser\Node\Expr | vendor/ |
|||||
Expanded | class | Peast\Formatter | vendor/ |
Compact formatter. | ||||
ExpectationException | class | Behat\Mink\Exception | vendor/ |
Exception thrown for failed expectations. | 3 | 1 | ||
ExpectationFailedException | final class | PHPUnit\Framework | vendor/ |
Exception for expectations which failed their check. | 24 | |||
ExpectedExceptionSniff | class | DrupalPractice\Sniffs\Commenting | vendor/ |
Checks that the PHPunit @expectedException tags are not used. | ||||
ExpectingATEXT | class | Egulias\EmailValidator\Result\Reason | vendor/ |
7 | ||||
ExpectingCTEXT | class | Egulias\EmailValidator\Result\Reason | vendor/ |
1 | ||||
ExpectingDomainLiteralClose | class | Egulias\EmailValidator\Result\Reason | vendor/ |
1 | ||||
ExpectingDTEXT | class | Egulias\EmailValidator\Result\Reason | vendor/ |
1 | ||||
ExpiringStoreTrait | trait | Symfony\Component\Lock\Store | vendor/ |
|||||
ExplicitBucketHistogramAggregation | final class | OpenTelemetry\SDK\Metrics\Aggregation | vendor/ |
@implements AggregationInterface<ExplicitBucketHistogramSummary> | 1 | |||
ExplicitBucketHistogramSummary | final class | OpenTelemetry\SDK\Metrics\Aggregation | vendor/ |
|||||
ExplicitOctalEmulator | class | PhpParser\Lexer\TokenEmulator | vendor/ |
1 | ||||
Explode | class | Drupal\migrate\Plugin\migrate\process | core/ |
Splits the source string into an array of strings, using a delimiter. | ||||
ExponentialHistogram | class | Opentelemetry\Proto\Metrics\V1 | vendor/ |
ExponentialHistogram represents the type of a metric that is calculated by aggregating as a ExponentialHistogram of all reported double measurements over a time interval. | ||||
ExponentialHistogramDataPoint | class | Opentelemetry\Proto\Metrics\V1 | vendor/ |
ExponentialHistogramDataPoint is a single data point in a timeseries that describes the time-varying values of a ExponentialHistogram of double values. A ExponentialHistogram contains summary statistics for a population of values, it may optionally… | ||||
ExportAllDeclaration | class | Peast\Syntax\Node | vendor/ |
A node that represents an "export all" declaration. For example: export * from "test" | ||||
ExportDefaultDeclaration | class | Peast\Syntax\Node | vendor/ |
A node that represents the export default declaration. For example: export default a | ||||
Exporter | class | Symfony\Component\VarExporter\Internal | vendor/ |
@author Nicolas Grekas <p@tchwork.com> | 1 | |||
Exporter | final class | PHPUnit\Util | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | 16 | |||
Exporter | final class | SebastianBergmann\Exporter | vendor/ |
11 | ||||
ExporterFactory | class | OpenTelemetry\SDK\Logs | vendor/ |
|||||
ExporterFactory | class | OpenTelemetry\SDK\Trace | vendor/ |
1 | ||||
ExportForm | class | Drupal\locale\Form | core/ |
Form for the Gettext translation files export form. | 1 | |||
ExportingReader | final class | OpenTelemetry\SDK\Metrics\MetricReader | vendor/ |
1 | ||||
ExportLogsPartialSuccess | class | Opentelemetry\Proto\Collector\Logs\V1 | vendor/ |
Generated from protobuf message <code>opentelemetry.proto.collector.logs.v1.ExportLogsPartialSuccess</code> | ||||
ExportLogsServiceRequest | class | Opentelemetry\Proto\Collector\Logs\V1 | vendor/ |
Generated from protobuf message <code>opentelemetry.proto.collector.logs.v1.ExportLogsServiceRequest</code> | 1 | |||
ExportLogsServiceResponse | class | Opentelemetry\Proto\Collector\Logs\V1 | vendor/ |
Generated from protobuf message <code>opentelemetry.proto.collector.logs.v1.ExportLogsServiceResponse</code> | 1 | |||
ExportMetricsPartialSuccess | class | Opentelemetry\Proto\Collector\Metrics\V1 | vendor/ |
Generated from protobuf message <code>opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess</code> | ||||
ExportMetricsServiceRequest | class | Opentelemetry\Proto\Collector\Metrics\V1 | vendor/ |
Generated from protobuf message <code>opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceRequest</code> | 1 | |||
ExportMetricsServiceResponse | class | Opentelemetry\Proto\Collector\Metrics\V1 | vendor/ |
Generated from protobuf message <code>opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceResponse</code> | 1 | |||
ExportNamedDeclaration | class | Peast\Syntax\Node | vendor/ |
A node that represents an export named declaration. For example: export {foo} from "bar" | ||||
ExportSpecifier | class | Peast\Syntax\Node | vendor/ |
A node that represents a specifier in an export declaration. For example "{a}" in: export {a} | ||||
ExportStorageManager | final class | Drupal\Core\Config | core/ |
The export storage manager dispatches an event for the export storage. | ||||
ExportTracePartialSuccess | class | Opentelemetry\Proto\Collector\Trace\V1 | vendor/ |
Generated from protobuf message <code>opentelemetry.proto.collector.trace.v1.ExportTracePartialSuccess</code> | ||||
ExportTraceServiceRequest | class | Opentelemetry\Proto\Collector\Trace\V1 | vendor/ |
Generated from protobuf message <code>opentelemetry.proto.collector.trace.v1.ExportTraceServiceRequest</code> | 1 | |||
ExportTraceServiceResponse | class | Opentelemetry\Proto\Collector\Trace\V1 | vendor/ |
Generated from protobuf message <code>opentelemetry.proto.collector.trace.v1.ExportTraceServiceResponse</code> | 1 | |||
ExportUtil | class | Prophecy\Util | vendor/ |
This class is a modification from sebastianbergmann/exporter | ||||
ExposedFormCache | class | Drupal\views | core/ |
Caches exposed forms, as they are heavy to generate. | 1 | 2 | ||
ExposedFormPluginBase | abstract class | Drupal\views\Plugin\views\exposed_form | core/ |
Base class for Views exposed filter form plugins. | 2 | |||
ExposedFormPluginInterface | interface | Drupal\views\Plugin\views\exposed_form | core/ |
Interface for exposed filter form plugins. | 1 | 1 | ||
Expr | abstract class | PhpParser\Node | vendor/ |
41 | 59 | |||
Expression | class | Symfony\Component\Validator\Constraints | vendor/ |
Validates a value using an expression from the Expression Language component. | ||||
Expression | interface | Peast\Syntax\Node | vendor/ |
Interface that every expression node must implement. | 28 | 6 | ||
Expression | class | PhpParser\Node\Stmt | vendor/ |
Represents statements of type "expr;" | ||||
Expression | final class | phpDocumentor\Reflection\Types | vendor/ |
Represents an expression type as described in the PSR-5, the PHPDoc Standard. | 1 | |||
ExpressionEngineInstaller | class | Composer\Installers | vendor/ |
|||||
ExpressionErrorException | class | Symfony\Component\CssSelector\Exception | vendor/ |
ParseException is thrown when a CSS selector syntax is not valid. | 4 | |||
ExpressionLanguage | class | Symfony\Component\DependencyInjection | vendor/ |
Adds some function to the default ExpressionLanguage. | 3 |