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 |
---|---|---|---|---|---|---|---|---|
PxcmsInstaller | class | Composer\Installers | vendor/ |
|||||
QpContentEncoder | final class | Symfony\Component\Mime\Encoder | vendor/ |
@author Lars Strojny | 1 | |||
QpEncoder | class | Symfony\Component\Mime\Encoder | vendor/ |
@author Chris Corbyn | 1 | |||
QpMimeHeaderEncoder | final class | Symfony\Component\Mime\Encoder | vendor/ |
@author Chris Corbyn | 1 | |||
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 | final class | GuzzleHttp\Psr7 | vendor/ |
|||||
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 | 1 | ||
Query | class | Drupal\workspaces\EntityQuery | core/ |
Alters entity queries to use a workspace revision instead of the default one. | ||||
Query | class | Peast | vendor/ |
Nodes query class | 1 | |||
Query | class | Drupal\Core\Config\Entity\Query | core/ |
Defines the entity query for configuration entities. | ||||
QueryAggregate | class | Drupal\Core\Entity\Query\Sql | core/ |
The SQL storage entity query aggregate class. | 1 | 1 | ||
QueryAggregate | class | Drupal\workspaces\EntityQuery | core/ |
Alters aggregate entity queries to use a workspace revision if possible. | ||||
QueryAggregateInterface | interface | Drupal\Core\Entity\Query | core/ |
Defines an interface for aggregated entity queries. | 2 | 2 | ||
QueryArgsCacheContext | class | Drupal\Core\Cache\Context | core/ |
Defines the QueryArgsCacheContext service, for "per query args" caching. | ||||
QueryBase | abstract class | Drupal\Core\Entity\Query | core/ |
The base entity query class. | 4 | 9 | ||
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. | 5 | |||
QueryFactory | class | Drupal\Core\Entity\Query\Null | core/ |
Provides a factory for creating entity query objects for the null backend. | ||||
QueryFactory | class | Drupal\Core\Entity\KeyValueStore\Query | core/ |
Provides a factory for creating the key value entity query. | ||||
QueryFactory | class | Drupal\Core\Entity\Query\Sql\pgsql | core/ |
PostgreSQL specific entity query implementation. | ||||
QueryFactory | class | Drupal\Core\Entity\Query\Sql | core/ |
Factory class creating entity query objects for the SQL backend. | 2 | 2 | ||
QueryFactory | class | Drupal\workspaces\EntityQuery | core/ |
Workspaces-specific entity query implementation. | 1 | 2 | ||
QueryFactory | class | Drupal\Core\Config\Entity\Query | core/ |
Provides a factory for creating entity query objects for the config backend. | ||||
QueryFactoryInterface | interface | Drupal\Core\Entity\Query | core/ |
Defines an interface for QueryFactory classes. | 4 | 4 | ||
QueryInterface | interface | Drupal\Core\Entity\Query | core/ |
Interface for entity queries. | 5 | 12 | ||
QueryParameter | class | Drupal\views\Plugin\views\argument_default | core/ |
A query parameter argument default handler. | ||||
QueryParameterRequestMatcher | class | Symfony\Component\HttpFoundation\RequestMatcher | vendor/ |
Checks the presence of HTTP query parameters of a Request. | ||||
QueryParameterValueResolver | final class | Symfony\Component\HttpKernel\Controller\ArgumentResolver | vendor/ |
Resolve arguments of type: array, string, int, float, bool, \BackedEnum from query parameters. | 1 | |||
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. | 1 | 7 | ||
QueryTrait | trait | Drupal\workspaces\EntityQuery | core/ |
Provides workspaces-specific helpers for altering entity queries. | ||||
Question | class | Symfony\Component\Console\Question | vendor/ |
Represents a Question. | 3 | 5 | ||
QuestionHelper | class | Symfony\Component\Console\Helper | vendor/ |
The QuestionHelper class provides helpers to interact with the user. | 1 | 3 | ||
Queue | class | Ramsey\Collection | vendor/ |
This class provides a basic implementation of `QueueInterface`, to minimize the effort required to implement this interface. | 1 | |||
QueueDatabaseFactory | class | Drupal\Core\Queue | core/ |
Defines the queue factory for the database backend. | ||||
QueueFactory | class | Drupal\Core\Queue | core/ |
Defines the queue factory. | 5 | |||
QueueFactoryInterface | interface | Drupal\Core\Queue | core/ |
An interface defining queue factory classes. | 1 | 1 | ||
QueueGarbageCollectionInterface | interface | Drupal\Core\Queue | core/ |
Queue garbage collection interface. | 1 | 1 | ||
QueueInterface | interface | Ramsey\Collection | vendor/ |
A queue is a collection in which the entities in the collection are kept in order. | 2 | |||
QueueInterface | interface | Drupal\Core\Queue | core/ |
Interface for a queue. | 3 | 3 | ||
QueueWorker | class | Drupal\Core\Queue\Attribute | core/ |
Declare a worker class for processing a queue item. | 3 | |||
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. | 3 | 3 | ||
QueueWorkerInterface | interface | Drupal\Core\Queue | core/ |
Defines an interface for a QueueWorker plugin. | 1 | 1 | ||
QueueWorkerManager | class | Drupal\Core\Queue | core/ |
Defines the queue worker manager. | ||||
QueueWorkerManagerInterface | interface | Drupal\Core\Queue | core/ |
Provides an interface for a queue worker manager. | 1 | 1 | ||
QuickStartCommand | class | Drupal\Core\Command | core/ |
Installs a Drupal site and starts a webserver for local testing/development. | ||||
Quota | class | org\bovigo\vfs | vendor/ |
Represents a quota for disk space. |