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 |
---|---|---|---|---|---|---|---|---|
RequireTernaryOperatorSniff | class | SlevomatCodingStandard\Sniffs\ControlStructures | vendor/ |
|||||
RequireTrailingCommaInCallSniff | class | SlevomatCodingStandard\Sniffs\Functions | vendor/ |
|||||
RequireTrailingCommaInClosureUseSniff | class | SlevomatCodingStandard\Sniffs\Functions | vendor/ |
|||||
RequireTrailingCommaInDeclarationSniff | class | SlevomatCodingStandard\Sniffs\Functions | vendor/ |
|||||
RequireYodaComparisonSniff | class | SlevomatCodingStandard\Sniffs\ControlStructures | vendor/ |
Bigger value must be on the right side: | ||||
ReservedRange | class | Google\Protobuf\Internal\DescriptorProto | vendor/ |
Range of reserved tag numbers. Reserved tag numbers may not be used by fields or extension ranges in the same message. Reserved ranges may not overlap. | ||||
ResetInterface | interface | Symfony\Contracts\Service | vendor/ |
Provides a way to reset an object to its initial state. | 12 | 13 | ||
ResettableServicePass | class | Symfony\Component\HttpKernel\DependencyInjection | vendor/ |
@author Alexander M. Turek <me@derrabus.de> | ||||
ResettableStackedRouteMatchInterface | interface | Drupal\Core\Routing | core/ |
Defines an interface for a resettable stack of route matches. | 1 | 1 | ||
Resize | class | Drupal\system\Plugin\ImageToolkit\Operation\gd | core/ |
Defines GD2 resize operation. | 1 | |||
ResizeImageEffect | class | Drupal\image\Plugin\ImageEffect | core/ |
Resizes an image resource. | 2 | |||
ResolveAutowireInlineAttributesPass | class | Symfony\Component\DependencyInjection\Compiler | vendor/ |
Inspects existing autowired services for { @author Ismail Özgün Turan <oezguen.turan@dadadev.com> | ||||
ResolveBindingsPass | class | Symfony\Component\DependencyInjection\Compiler | vendor/ |
@author Guilhem Niot <guilhem.niot@gmail.com> | ||||
ResolveChildDefinitionsPass | class | Symfony\Component\DependencyInjection\Compiler | vendor/ |
This replaces all ChildDefinition instances with their equivalent fully merged Definition instance. | ||||
ResolveClassPass | class | Symfony\Component\DependencyInjection\Compiler | vendor/ |
@author Nicolas Grekas <p@tchwork.com> | ||||
ResolveDecoratorStackPass | class | Symfony\Component\DependencyInjection\Compiler | vendor/ |
@author Nicolas Grekas <p@tchwork.com> | ||||
ResolveEnvPlaceholdersPass | class | Symfony\Component\DependencyInjection\Compiler | vendor/ |
Replaces env var placeholders by their current values. | 1 | |||
ResolveFactoryClassPass | class | Symfony\Component\DependencyInjection\Compiler | vendor/ |
@author Maxime Steinhausser <maxime.steinhausser@gmail.com> | ||||
ResolveHotPathPass | class | Symfony\Component\DependencyInjection\Compiler | vendor/ |
Propagate "container.hot_path" tags to referenced services. | 1 | |||
ResolveInstanceofConditionalsPass | class | Symfony\Component\DependencyInjection\Compiler | vendor/ |
Applies instanceof conditionals to definitions. | ||||
ResolveInvalidReferencesPass | class | Symfony\Component\DependencyInjection\Compiler | vendor/ |
Emulates the invalid behavior if the reference is not found within the container. | ||||
ResolveNamedArgumentsPass | class | Symfony\Component\DependencyInjection\Compiler | vendor/ |
Resolves named arguments to their corresponding numeric index. | ||||
ResolveNoPreloadPass | class | Symfony\Component\DependencyInjection\Compiler | vendor/ |
Propagate the "container.no_preload" tag. | ||||
ResolveParameterPlaceHoldersPass | class | Symfony\Component\DependencyInjection\Compiler | vendor/ |
Resolves all parameter placeholders "%somevalue%" to their real values. | ||||
ResolveReferencesToAliasesPass | class | Symfony\Component\DependencyInjection\Compiler | vendor/ |
Replaces all references to aliases with references to the actual service. | ||||
ResolverInterface | interface | OpenTelemetry\SDK\Common\Http\Psr\Client | vendor/ |
2 | 3 | |||
ResolverInterface | interface | OpenTelemetry\SDK\Common\Http\HttpPlug\Client | vendor/ |
2 | 3 | |||
ResolverInterface | interface | OpenTelemetry\SDK\Common\Configuration\Resolver | vendor/ |
2 | ||||
ResolverNotFoundException | class | Symfony\Component\HttpKernel\Exception | vendor/ |
1 | ||||
ResolveServiceSubscribersPass | class | Symfony\Component\DependencyInjection\Compiler | vendor/ |
Compiler pass to inject their service locator to service subscribers. | ||||
ResolveTaggedIteratorArgumentPass | class | Symfony\Component\DependencyInjection\Compiler | vendor/ |
Resolves all TaggedIteratorArgument arguments. | ||||
Resource | class | Opentelemetry\Proto\Resource\V1 | vendor/ |
Resource information. | 3 | |||
Resource | class | Drupal\media\OEmbed | core/ |
Value object representing an oEmbed resource. | 2 | |||
Resource | class | GPBMetadata\Opentelemetry\Proto\Resource\V1 | vendor/ |
|||||
ResourceAttributes | interface | OpenTelemetry\SemConv | vendor/ |
10 | ||||
ResourceAttributeValues | interface | OpenTelemetry\SemConv | vendor/ |
|||||
ResourceBase | abstract class | Drupal\rest\Plugin | core/ |
Common base class for resource plugins. | 4 | 4 | ||
ResourceCaster | class | Symfony\Component\VarDumper\Caster | vendor/ |
Casts common resource types to array representation. | ||||
ResourceComparator | final class | SebastianBergmann\Comparator | vendor/ |
|||||
ResourceDetectorInterface | interface | OpenTelemetry\SDK\Resource | vendor/ |
11 | 12 | |||
ResourceException | class | Drupal\media\OEmbed | core/ |
Exception thrown if an oEmbed resource cannot be fetched or parsed. | 5 | |||
ResourceFetcher | class | Drupal\media\OEmbed | core/ |
Fetches and caches oEmbed resources. | 2 | |||
ResourceFetcherInterface | interface | Drupal\media\OEmbed | core/ |
Defines an interface for an oEmbed resource fetcher service. | 1 | 5 | ||
ResourceIdentifier | class | Drupal\jsonapi\JsonApiResource | core/ |
Represents a JSON:API resource identifier object. | 4 | |||
ResourceIdentifierInterface | interface | Drupal\jsonapi\JsonApiResource | core/ |
An interface for identifying a related resource. | 3 | 3 | ||
ResourceIdentifierNormalizer | class | Drupal\jsonapi\Normalizer | core/ |
Normalizes a Relationship according to the JSON:API specification. | 2 | |||
ResourceIdentifierTrait | trait | Drupal\jsonapi\JsonApiResource | core/ |
Used to associate an object like an exception to a particular resource. | 1 | |||
ResourceInfo | class | OpenTelemetry\SDK\Resource | vendor/ |
A Resource is an immutable representation of the entity producing telemetry. For example, a process producing telemetry that is running in a container on Kubernetes has a Pod name, it is in a namespace and possibly is part of a Deployment which also… | 35 | |||
ResourceInfoFactory | class | OpenTelemetry\SDK\Resource | vendor/ |
7 | ||||
ResourceInterface | interface | Drupal\rest\Plugin | core/ |
Specifies the publicly available methods of a resource plugin. | 1 | 2 | 1 |