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 |
---|---|---|---|---|---|---|---|---|
PrototypeConfigurator | class | Symfony\Component\DependencyInjection\Loader\Configurator | vendor/ |
@author Nicolas Grekas <p@tchwork.com> | ||||
Provider | class | Drupal\media\OEmbed | core/ |
Value object for oEmbed providers. | 1 | |||
ProviderException | class | Drupal\media\OEmbed | core/ |
Exception thrown if an oEmbed provider causes an error. | 1 | |||
ProviderFilterDecorator | class | Drupal\migrate\Plugin\Discovery | core/ |
Remove plugin definitions with non-existing providers. | 2 | |||
ProviderRepository | class | Drupal\media\OEmbed | core/ |
Retrieves and caches information about oEmbed providers. | 2 | |||
ProviderRepositoryInterface | interface | Drupal\media\OEmbed | core/ |
Defines an interface for a collection of oEmbed provider information. | 1 | |||
ProxiedCloneMethod | trait | PHPUnit\Framework\MockObject | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | 1 | |||
Proxy | class | GuzzleHttp\Handler | vendor/ |
Provides basic proxies for handlers. | 1 | |||
ProxyBuilder | class | Drupal\Component\ProxyBuilder | core/ |
Generates the string representation of the proxy service. | 1 | 4 | ||
ProxyBuilder | class | Drupal\Core\ProxyBuilder | core/ |
Extend the component proxy builder by using the DependencySerializationTrait. | 1 | |||
ProxyHelper | final class | Symfony\Component\VarExporter | vendor/ |
@author Nicolas Grekas <p@tchwork.com> | 7 | |||
ProxyItem | class | Composer\Util\Http | vendor/ |
@internal @author John Stevenson <john-stevenson@blueyonder.co.uk> | ||||
ProxyManager | class | Composer\Util\Http | vendor/ |
@internal @author John Stevenson <john-stevenson@blueyonder.co.uk> | 3 | |||
ProxyManagerCaster | class | Symfony\Component\VarDumper\Caster | vendor/ |
@author Nicolas Grekas <p@tchwork.com> | ||||
ProxyServicesPass | class | Drupal\Core\DependencyInjection\Compiler | core/ |
Replaces all services with a lazy flag. | 1 | |||
Pseudo | abstract class | Peast\Selector\Node\Part | vendor/ |
Selector pseudo part base class | 3 | |||
PseudoClassExtension | class | Symfony\Component\CssSelector\XPath\Extension | vendor/ |
XPath expression translator pseudo-class extension. | ||||
PseudoIndex | class | Peast\Selector\Node\Part | vendor/ |
Selector part index pseudo class | ||||
PseudoNode | class | Symfony\Component\CssSelector\Node | vendor/ |
Represents a "<selector>:<identifier>" node. | ||||
PseudoSelector | class | Peast\Selector\Node\Part | vendor/ |
Selector part selector pseudo class | ||||
PseudoSimple | class | Peast\Selector\Node\Part | vendor/ |
Selector part simple pseudo class | ||||
PseudoType | interface | phpDocumentor\Reflection | vendor/ |
25 | 25 | |||
Psr17Factory | class | Http\Discovery | vendor/ |
A generic PSR-17 implementation. | 1 | 1 | ||
Psr17FactoryDiscovery | final class | Http\Discovery | vendor/ |
Finds PSR-17 factories. | 5 | |||
Psr18Client | class | Http\Discovery | vendor/ |
A generic PSR-18 and PSR-17 implementation. | ||||
Psr18ClientDiscovery | final class | Http\Discovery | vendor/ |
Finds a PSR-18 HTTP Client. | 3 | |||
Psr3 | class | OpenTelemetry\API\Logs\Map | vendor/ |
|||||
Psr3LogWriter | class | OpenTelemetry\API\Behavior\Internal\LogWriter | vendor/ |
1 | ||||
Psr4DirectoryLoader | final class | Symfony\Component\Routing\Loader | vendor/ |
A loader that discovers controller classes in a directory that follows PSR-4. | ||||
Psr6CacheClearer | class | Symfony\Component\HttpKernel\CacheClearer | vendor/ |
@author Nicolas Grekas <p@tchwork.com> | ||||
Psr7RequestValueResolver | final class | Drupal\Core\Controller\ArgumentResolver | core/ |
Yields a PSR7 request object based on the request object passed along. | ||||
PsrCachedReader | final class | Doctrine\Common\Annotations | vendor/ |
A cache aware annotation reader. | ||||
PsrClientResolver | final class | OpenTelemetry\SDK\Common\Adapter\HttpDiscovery | vendor/ |
|||||
PsrHttpFactory | class | Symfony\Bridge\PsrHttpMessage\Factory | vendor/ |
Builds Psr\HttpMessage instances using a PSR-17 implementation. | ||||
PsrResponseListener | final class | Symfony\Bridge\PsrHttpMessage\EventListener | vendor/ |
Converts PSR-7 Response to HttpFoundation Response using the bridge. | ||||
PsrResponseSubscriber | class | Drupal\Core\EventSubscriber | core/ |
Response subscriber for handling PSR-7 responses. | ||||
PsrServerRequestResolver | final class | Symfony\Bridge\PsrHttpMessage\ArgumentValueResolver | vendor/ |
Injects the RequestInterface, MessageInterface or ServerRequestInterface when requested. | ||||
PsrSeverityMapperInterface | interface | OpenTelemetry\SDK\Logs | vendor/ |
|||||
PsrTransport | final class | OpenTelemetry\SDK\Common\Export\Http | vendor/ |
@psalm-template CONTENT_TYPE of string @template-implements TransportInterface<CONTENT_TYPE> | 1 | |||
PsrTransportFactory | final class | OpenTelemetry\SDK\Common\Export\Http | vendor/ |
1 | ||||
PsrUtils | final class | OpenTelemetry\SDK\Common\Export\Http | vendor/ |
@internal | ||||
PublicStream | class | Drupal\Core\StreamWrapper | core/ |
Defines a Drupal public (public://) stream wrapper class. | 1 | 6 | ||
PublicTrait | trait | Symfony\Component\DependencyInjection\Loader\Configurator\Traits | vendor/ |
|||||
PublishAction | class | Drupal\Core\Action\Plugin\Action | core/ |
Publishes an entity. | 1 | 2 | ||
PuliBetaStrategy | class | Http\Discovery\Strategy | vendor/ |
Find candidates using Puli. | ||||
PuliUnavailableException | final class | Http\Discovery\Exception | vendor/ |
Thrown when we can't use Puli for discovery. | 1 | |||
PumpStream | final class | GuzzleHttp\Psr7 | vendor/ |
Provides a read only stream that pumps data from a PHP callable. | ||||
PuppetInstaller | class | Composer\Installers | vendor/ |
|||||
PureUnlessCallableIsImpureTagValueNode | class | PHPStan\PhpDocParser\Ast\PhpDoc | vendor/ |
1 | ||||
PushMetricExporterInterface | interface | OpenTelemetry\SDK\Metrics | vendor/ |
2 | 3 |