Classes, traits, and interfaces - 10.3.x - 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 1518
| Name | Deprecated | Object type | Namespace | File name | Summary | Direct uses | Use statements | Strings |
|---|---|---|---|---|---|---|---|---|
| Qualified | final class | Drupal\Tests\Component\Annotation\Doctrine\Fixtures\Attribute | core/ |
#[ExtraAttributes\ExampleAttribute] | ||||
| Query | class | Drupal\Core\Config\Entity\Query | core/ |
Defines the entity query for configuration entities. | ||||
| 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\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/ |
@coversDefaultClass \Drupal\Core\Cache\Context\QueryArgsCacheContext[[api-linebreak]] @group Cache | ||||
| 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. | 7 | |||
| 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\Core\Entity\Query\Sql | core/ |
Factory class creating entity query objects for the SQL backend. | 2 | 2 | 2 | |
| QueryFactory | class | Drupal\Core\Entity\Query\Sql\pgsql | core/ |
PostgreSQL specific entity query implementation. | 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\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/ |
@coversDefaultClass \Drupal\Core\Config\Entity\Query\QueryFactory[[api-linebreak]] @group Config | ||||
| 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 | 15 | ||
| QueryOptionsTest | class | Drupal\Tests\views\Functional\Plugin | core/ |
Tests setting the query options. | ||||
| QueryParameter | class | Drupal\views\Plugin\views\argument_default | core/ |
A query parameter argument default handler. | 1 | |||
| QueryParameterTest | class | Drupal\Tests\views\Unit\Plugin\argument_default | core/ |
@coversDefaultClass \Drupal\views\Plugin\views\argument_default\QueryParameter[[api-linebreak]] @group views | ||||
| QueryParameterWorkspaceNegotiator | class | Drupal\workspaces\Negotiator | core/ |
Defines the query parameter workspace negotiator. | 2 | |||
| QueryPluginBase | abstract class | Drupal\views\Plugin\views\query | core/ |
Base plugin class for Views queries. | 2 | 14 | ||
| QueryTest | class | Drupal\Tests\Core\Entity\Query\Sql | core/ |
@coversDefaultClass \Drupal\Core\Entity\Query\Sql\Query[[api-linebreak]] @group Entity | ||||
| QueryTest | class | Drupal\KernelTests\Core\Database | core/ |
Tests Drupal's extended prepared statement syntax.. | ||||
| QueryTest | class | Drupal\Tests\views\Kernel\Plugin | core/ |
Tests query plugins. | ||||
| QueryTest | class | Drupal\views_test_data\Plugin\views\query | core/ |
Defines a query test plugin. | 1 | |||
| QueryTest | class | Drupal\Tests\views_ui\Functional | core/ |
Tests query plugins. | ||||
| QueryTrait | trait | Drupal\workspaces\EntityQuery | core/ |
Provides workspaces-specific helpers for altering entity queries. | ||||
| QueueDatabaseFactory | class | Drupal\Core\Queue | core/ |
Defines the queue factory for the database backend. | 2 | |||
| QueueExceptionsTest | class | Drupal\Tests\Core\Queue | core/ |
Tests queue exceptions. | ||||
| QueueFactory | class | Drupal\Core\Queue | core/ |
Defines the queue factory. | 3 | 2 | ||
| QueueFactoryInterface | interface | Drupal\Core\Queue | core/ |
An interface defining queue factory classes. | 1 | |||
| QueueGarbageCollectionInterface | interface | Drupal\Core\Queue | core/ |
Queue garbage collection interface. | 1 | 1 | ||
| QueueInterface | interface | Drupal\Core\Queue | core/ |
Interface for a queue. | 3 | 4 | ||
| QueueSerializationTest | class | Drupal\KernelTests\Core\Queue | core/ |
Tests serializing a form with an injected DatabaseQueue instance. | ||||
| QueueTest | class | Drupal\KernelTests\Core\Queue | core/ |
Queues and unqueues a set of items to check the basic queue functionality. | ||||
| QueueWorker | class | Drupal\Core\Queue\Attribute | core/ |
Declare a worker class for processing a queue item. | 10 | |||
| QueueWorker | class | Drupal\Core\Annotation | core/ |
Declare a worker class for processing a queue item. | ||||
| QueueWorkerBase | abstract class | Drupal\Core\Queue | core/ |
Provides a base implementation for a QueueWorker plugin. | 9 | 9 | ||
| QueueWorkerInterface | interface | Drupal\Core\Queue | core/ |
Defines an interface for a QueueWorker plugin. | 1 | 2 |
Pagination
- Previous page
- Page 142
- Next page
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.