Classes, traits, and interfaces - main - drupal
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 1529
| Name | Deprecated | Object type | Namespace | File name | Summary | Direct uses | Use statements | Strings |
|---|---|---|---|---|---|---|---|---|
| ProtocolVersionCacheContext | class | Drupal\Core\Cache\Context | core/ |
Defines the ProtocolVersionCacheContext service, for "per protocol" caching. | 1 | 2 | ||
| ProtocolVersionCacheContextTest | class | Drupal\Tests\Core\Cache\Context | core/ |
Tests Drupal\Core\Cache\Context\ProtocolVersionCacheContext. | ||||
| Provider | class | Drupal\media\OEmbed | core/ |
Value object for oEmbed providers. | 7 | |||
| ProviderException | class | Drupal\media\OEmbed | core/ |
Exception thrown if an oEmbed provider causes an error. | 3 | |||
| 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. | 1 | 3 | 2 | |
| ProviderRepository | class | Drupal\media_test_oembed | core/ |
Overrides the oEmbed provider repository service for testing purposes. | ||||
| ProviderRepositoryInterface | interface | Drupal\media\OEmbed | core/ |
Defines an interface for a collection of oEmbed provider information. | 1 | 2 | ||
| ProviderRepositoryTest | class | Drupal\Tests\media\Unit | core/ |
Tests Drupal\media\OEmbed\ProviderRepository. | ||||
| ProviderRepositoryTest | class | Drupal\Tests\media\Kernel | core/ |
Tests the oEmbed provider repository. | ||||
| ProxyBuilder | class | Drupal\Component\ProxyBuilder | core/ |
Generates the string representation of the proxy service. | 1 | 5 | ||
| ProxyBuilder | class | Drupal\Core\ProxyBuilder | core/ |
Extend the component proxy builder by using the DependencySerializationTrait. | 2 | |||
| ProxyBuilderTest | class | Drupal\Tests\Core\ProxyBuilder | core/ |
Tests Drupal\Core\ProxyBuilder\ProxyBuilder. | ||||
| ProxyBuilderTest | class | Drupal\Tests\Component\ProxyBuilder | core/ |
Tests Drupal\Component\ProxyBuilder\ProxyBuilder. | ||||
| ProxyServicesPass | class | Drupal\Core\DependencyInjection\Compiler | core/ |
Replaces all services with a lazy flag. | 2 | |||
| ProxyServicesPassTest | class | Drupal\Tests\Core\DependencyInjection\Compiler | core/ |
Tests Drupal\Core\DependencyInjection\Compiler\ProxyServicesPass. | ||||
| Psr7RequestValueResolver | final class | Drupal\Core\Controller\ArgumentResolver | core/ |
Yields a PSR7 request object based on the request object passed along. | 2 | |||
| PsrResponseSubscriber | class | Drupal\Core\EventSubscriber | core/ |
Response subscriber for handling PSR-7 responses. | 1 | 2 | ||
| PsrResponseSubscriberTest | class | Drupal\Tests\Core\EventSubscriber | core/ |
Tests Drupal\Core\EventSubscriber\PsrResponseSubscriber. | ||||
| PublicStream | class | Drupal\Core\StreamWrapper | core/ |
Defines a Drupal public (public://) stream wrapper class. | 3 | 23 | 2 | |
| PublishAction | class | Drupal\Core\Action\Plugin\Action | core/ |
Publishes an entity. | 1 | 2 | ||
| PublishActionTest | class | Drupal\KernelTests\Core\Action | core/ |
Tests Publish Action. | ||||
| Qualified | final class | Drupal\Tests\Component\Annotation\Doctrine\Fixtures\Attribute | core/ |
#[ExtraAttributes\ExampleAttribute] | ||||
| Query | abstract class | Drupal\Core\Database\Query | core/ |
Base class for query builders. | 7 | |||
| Query | class | Drupal\Core\Entity\Query\Sql | core/ |
The SQL storage entity query class. | 2 | 2 | ||
| Query | class | Drupal\Core\Entity\Query\Null | core/ |
Defines the entity query for configuration entities. | ||||
| Query | class | Drupal\Core\Entity\KeyValueStore\Query | core/ |
Defines the entity query for entities stored in a key value backend. | ||||
| Query | class | Drupal\Core\Config\Entity\Query | core/ |
Defines the entity query for configuration entities. | ||||
| Query | class | Drupal\workspaces\EntityQuery | core/ |
Alters entity queries to use a workspace revision instead of the default one. | ||||
| QueryAggregate | class | Drupal\workspaces\EntityQuery | core/ |
Alters aggregate entity queries to use a workspace revision if possible. | ||||
| QueryAggregate | class | Drupal\Core\Entity\Query\Sql | core/ |
The SQL storage entity query aggregate class. | 1 | 1 | ||
| QueryAggregateInterface | interface | Drupal\Core\Entity\Query | core/ |
Defines an interface for aggregated entity queries. | 2 | 3 | ||
| QueryArgsCacheContext | class | Drupal\Core\Cache\Context | core/ |
Defines the QueryArgsCacheContext service, for "per query args" caching. | 1 | 2 | ||
| QueryArgsCacheContextTest | class | Drupal\Tests\Core\Cache\Context | core/ |
Tests Drupal\Core\Cache\Context\QueryArgsCacheContext. | ||||
| QueryBase | abstract class | Drupal\Core\Entity\Query | core/ |
The base entity query class. | 4 | 9 | ||
| QueryBatchTest | class | Drupal\Tests\migrate\Kernel | core/ |
Tests query batching. | ||||
| QueryBatchTest | class | Drupal\migrate_query_batch_test\Plugin\migrate\source | core/ |
Source plugin for migration high water tests. | ||||
| QueryConditionTrait | trait | Drupal\Core\Database\Query | core/ |
Provides an implementation of ConditionInterface. | ||||
| QueryException | class | Drupal\Core\Entity\Query | core/ |
Exception thrown by Query() on unsupported query syntax. | 8 | |||
| QueryExecutionVoidInterface | interface | Drupal\Core\Database\Query | core/ |
Interface for queries whose execution does not return a value. | 1 | |||
| QueryFactory | class | Drupal\Core\Entity\Query\Sql | core/ |
Factory class creating entity query objects for the SQL backend. | 2 | 2 | 2 | |
| QueryFactory | class | Drupal\Core\Entity\Query\Null | core/ |
Provides a factory for creating entity query objects for the null backend. | 2 | |||
| QueryFactory | class | Drupal\Core\Entity\KeyValueStore\Query | core/ |
Provides a factory for creating the key value entity query. | 2 | |||
| QueryFactory | class | Drupal\Core\Config\Entity\Query | core/ |
Provides a factory for creating entity query objects for the config backend. | 2 | 2 | ||
| QueryFactory | class | Drupal\pgsql\EntityQuery | core/ |
PostgreSQL specific entity query implementation. | 2 | |||
| QueryFactory | class | Drupal\workspaces\EntityQuery | core/ |
Workspaces-specific entity query implementation. | 1 | 2 | ||
| QueryFactoryInterface | interface | Drupal\Core\Entity\Query | core/ |
Defines an interface for QueryFactory classes. | 4 | 6 | ||
| QueryFactoryTest | class | Drupal\Tests\Core\Config\Entity\Query | core/ |
Tests Drupal\Core\Config\Entity\Query\QueryFactory. | ||||
| QueryGroupByTest | class | Drupal\Tests\views\Kernel | core/ |
Tests aggregate functionality of views, for example count. | ||||
| QueryInterface | interface | Drupal\Core\Entity\Query | core/ |
Interface for entity queries. | 5 | 20 |
Pagination
- Previous page
- Page 164
- Next page
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.