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 |
---|---|---|---|---|---|---|---|---|
MethodFilter | class | Drupal\Core\Routing | core/ |
Filters routes based on the HTTP method. | ||||
MethodName | final class | PHPUnit\Framework\MockObject\Rule | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | 1 | |||
MethodNameAlreadyConfiguredException | final class | PHPUnit\Framework\MockObject | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | 1 | |||
MethodNameConstraint | final class | PHPUnit\Framework\MockObject | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | 1 | |||
MethodNameMatch | interface | PHPUnit\Framework\MockObject\Builder | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | 1 | |||
MethodNameNotConfiguredException | final class | PHPUnit\Framework\MockObject | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | 1 | |||
MethodNode | class | Prophecy\Doubler\Generator\Node | vendor/ |
Method node. | 5 | |||
MethodNotAllowedException | class | Symfony\Component\Routing\Exception | vendor/ |
The resource was found but the request method is not allowed. | 9 | |||
MethodNotAllowedHttpException | class | Symfony\Component\HttpKernel\Exception | vendor/ |
@author Kris Wallsmith <kris@symfony.com> | 1 | 4 | ||
MethodNotExtendableException | class | Prophecy\Exception\Doubler | vendor/ |
1 | ||||
MethodNotFoundException | class | Prophecy\Exception\Doubler | vendor/ |
1 | ||||
MethodOptions | class | Google\Protobuf\Internal | vendor/ |
Generated from protobuf message <code>google.protobuf.MethodOptions</code> | ||||
MethodParameter | final class | phpDocumentor\Reflection\DocBlock\Tags | vendor/ |
1 | ||||
MethodParameterFactory | final class | phpDocumentor\Reflection\DocBlock\Tags\Factory | vendor/ |
@internal This class is not part of the BC promise of this library. | 1 | |||
MethodParametersAlreadyConfiguredException | final class | PHPUnit\Framework\MockObject | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | 1 | |||
MethodProphecy | class | Prophecy\Prophecy | vendor/ |
Method prophecy. | 15 | |||
MethodProphecyException | class | Prophecy\Exception\Prophecy | vendor/ |
2 | 5 | |||
MethodRequestMatcher | class | Symfony\Component\HttpFoundation\RequestMatcher | vendor/ |
Checks the HTTP method of a Request. | ||||
MethodScopeSniff | class | Drupal\Sniffs\Scope | vendor/ |
Verifies that class/interface/trait methods have scope modifiers. | ||||
MethodScopeSniff | class | PHP_CodeSniffer\Standards\Squiz\Sniffs\Scope | vendor/ |
|||||
MethodSpacingSniff | class | SlevomatCodingStandard\Sniffs\Classes | vendor/ |
|||||
MethodTagRetrieverInterface | interface | Prophecy\PhpDocumentor | vendor/ |
@author Théo FIDRY <theo.fidry@gmail.com> | 2 | 1 | ||
MethodTagValueNode | class | PHPStan\PhpDocParser\Ast\PhpDoc | vendor/ |
2 | ||||
MethodTagValueParameterNode | class | PHPStan\PhpDocParser\Ast\PhpDoc | vendor/ |
2 | ||||
Metric | final class | OpenTelemetry\SDK\Metrics\Stream | vendor/ |
@internal | ||||
Metric | final class | OpenTelemetry\SDK\Metrics\Data | vendor/ |
5 | ||||
Metric | class | Opentelemetry\Proto\Metrics\V1 | vendor/ |
Defines a Metric which has one or more timeseries. The following is a brief summary of the Metric data model. For more details, see: https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/metrics/data-model.md The data… | 1 | |||
MetricAggregator | final class | OpenTelemetry\SDK\Metrics\Stream | vendor/ |
@internal | 1 | |||
MetricAggregatorFactory | final class | OpenTelemetry\SDK\Metrics\Stream | vendor/ |
@internal | 1 | |||
MetricAggregatorFactoryInterface | interface | OpenTelemetry\SDK\Metrics\Stream | vendor/ |
@internal | 1 | 2 | ||
MetricAggregatorInterface | interface | OpenTelemetry\SDK\Metrics\Stream | vendor/ |
@internal | 1 | 2 | ||
MetricCollectorInterface | interface | OpenTelemetry\SDK\Metrics\MetricRegistry | vendor/ |
@internal | 1 | 4 | ||
MetricCollectorInterface | interface | OpenTelemetry\SDK\Metrics\Stream | vendor/ |
@internal | 1 | |||
MetricConfigRequest | class | Opentelemetry\Proto\Metrics\Experimental | vendor/ |
Generated from protobuf message <code>opentelemetry.proto.metrics.experimental.MetricConfigRequest</code> | ||||
MetricConfigResponse | class | Opentelemetry\Proto\Metrics\Experimental | vendor/ |
Generated from protobuf message <code>opentelemetry.proto.metrics.experimental.MetricConfigResponse</code> | ||||
MetricConverter | final class | OpenTelemetry\Contrib\Otlp | vendor/ |
|||||
MetricExporter | final class | OpenTelemetry\Contrib\Otlp | vendor/ |
@psalm-import-type SUPPORTED_CONTENT_TYPES from ProtobufSerializer | ||||
MetricExporterFactory | class | OpenTelemetry\Contrib\Otlp | vendor/ |
|||||
MetricExporterFactoryInterface | interface | OpenTelemetry\SDK\Metrics | vendor/ |
4 | 5 | |||
MetricExporterInterface | interface | OpenTelemetry\SDK\Metrics | vendor/ |
2 | 7 | |||
MetricFactoryInterface | interface | OpenTelemetry\SDK\Metrics | vendor/ |
@internal | 1 | 1 | ||
MetricMetadataInterface | interface | OpenTelemetry\SDK\Metrics | vendor/ |
1 | 7 | |||
MetricReaderInterface | interface | OpenTelemetry\SDK\Metrics | vendor/ |
1 | 1 | |||
MetricRegistrationInterface | interface | OpenTelemetry\SDK\Metrics | vendor/ |
@internal | 2 | 3 | ||
MetricRegistry | final class | OpenTelemetry\SDK\Metrics\MetricRegistry | vendor/ |
@internal | 1 | |||
MetricRegistryInterface | interface | OpenTelemetry\SDK\Metrics\MetricRegistry | vendor/ |
@internal | 1 | 4 | ||
Metrics | class | GPBMetadata\Opentelemetry\Proto\Metrics\V1 | vendor/ |
|||||
MetricsConfigService | class | GPBMetadata\Opentelemetry\Proto\Metrics\Experimental | vendor/ |
|||||
MetricsData | class | Opentelemetry\Proto\Metrics\V1 | vendor/ |
MetricsData represents the metrics data that can be stored in a persistent storage, OR can be embedded by other protocols that transfer OTLP metrics data but do not implement the OTLP protocol. The main difference between this message and collector… | ||||
MetricSourceInterface | interface | OpenTelemetry\SDK\Metrics | vendor/ |
1 | 3 |