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 |
|---|---|---|---|---|---|---|---|---|
| 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/ |
Tests Drupal\views\Plugin\views\argument_default\QueryParameter. | ||||
| QueryParameterWorkspaceNegotiator | class | Drupal\workspaces\Negotiator | core/ |
Defines the query parameter workspace negotiator. | 2 | 2 | ||
| QueryPluginBase | abstract class | Drupal\views\Plugin\views\query | core/ |
Base plugin class for Views queries. | 2 | 14 | ||
| 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. | ||||
| QueryTest | class | Drupal\KernelTests\Core\Database | core/ |
Tests Drupal's extended prepared statement syntax. | ||||
| QueryTest | class | Drupal\Tests\Core\Entity\Query\Sql | core/ |
Tests Drupal\Core\Entity\Query\Sql\Query. | ||||
| 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. | 12 | 2 | ||
| 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 | Drupal\Core\Queue | core/ |
Interface for a queue. | 3 | 4 | ||
| QueueProcessTrait | trait | Drupal\Core\Queue | core/ |
Provides a trait for processing queue items. | 1 | |||
| 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\Annotation | core/ |
Declare a worker class for processing a queue item. | ||||
| QueueWorker | class | Drupal\Core\Queue\Attribute | core/ |
Declare a worker class for processing a queue item. | 11 | |||
| QueueWorkerBase | abstract class | Drupal\Core\Queue | core/ |
Provides a base implementation for a QueueWorker plugin. | 10 | 10 | ||
| QueueWorkerInterface | interface | Drupal\Core\Queue | core/ |
Defines an interface for a QueueWorker plugin. | 1 | 2 | ||
| QueueWorkerManager | class | Drupal\Core\Queue | core/ |
Defines the queue worker manager. | 2 | |||
| QueueWorkerManagerInterface | interface | Drupal\Core\Queue | core/ |
Provides an interface for a queue worker manager. | 1 | 3 | ||
| QuickStartCommand | class | Drupal\Core\Command | core/ |
Installs a Drupal site and starts a webserver for local testing/development. | ||||
| QuickStartTest | class | Drupal\BuildTests\QuickStart | core/ |
Tests the quick-start commands. | ||||
| QuickStartTestBase | abstract class | Drupal\BuildTests\QuickStart | core/ |
Helper methods for using the quickstart feature of Drupal. | 3 | 3 | ||
| QuxTest | abstract class | Drupal\Tests\Core\Foo | core/ |
|||||
| Radio | class | Drupal\Core\Render\Element | core/ |
Provides a form element for a single radio button. | ||||
| Radios | class | Drupal\Core\Render\Element | core/ |
Provides a form element for a set of radio buttons. | 1 | |||
| Random | abstract class | Drupal\TestTools | core/ |
Provides random generator utility static methods. | 20 | |||
| Random | class | Drupal\Component\Utility | core/ |
Defines a utility class for creating random data. | 30 | 1 | ||
| Random | class | Drupal\views\Plugin\views\sort | core/ |
Handle a random sort. | ||||
| RandomGeneratorTrait | trait | Drupal\Tests | core/ |
Provides random generator utility methods. | 3 | |||
| RandomTest | class | Drupal\Tests\Component\Utility | core/ |
Tests random data generation. | ||||
| Range | class | Drupal\Core\Render\Element | core/ |
Provides a slider for input of a number within a specific range. | ||||
| RangeConstraint | class | Drupal\Core\Validation\Plugin\Validation\Constraint | core/ |
Range constraint. | 1 | 1 | ||
| RangeConstraintValidator | class | Drupal\Core\Validation\Plugin\Validation\Constraint | core/ |
Validator for the Drupal 'range' constraint. | 1 | 1 | ||
| RangeQueryTest | class | Drupal\KernelTests\Core\Database | core/ |
Tests the Range query functionality. | ||||
| Raw | class | Drupal\views\Plugin\views\argument_default | core/ |
Default argument plugin to use the raw value from the URL. | 1 | |||
| RawConfigWriterTrait | trait | Drupal\Tests\Traits\Core\Config | core/ |
Allows writing raw config data for testing purposes. | 1 | |||
| RawStringFormatterTest | class | Drupal\Tests\field\Kernel\KernelString | core/ |
Tests the raw string formatter. | ||||
| RawTest | class | Drupal\Tests\views\Unit\Plugin\argument_default | core/ |
Tests Drupal\views\Plugin\views\argument_default\Raw. | ||||
| ReadOnlyException | class | Drupal\Core\TypedData\Exception | core/ |
Exception thrown when trying to write or set ready-only data. | ||||
| ReadOnlyModeMethodFilter | class | Drupal\jsonapi\Routing | core/ |
Filters routes based on the HTTP method and JSON:API's read-only mode. | 2 | |||
| ReadOnlyStorage | class | Drupal\Core\Config | core/ |
A ReadOnlyStorage decorates a storage and does not allow writing to it. | 1 | |||
| ReadOnlyStorageTest | class | Drupal\Tests\Core\Config | core/ |
Tests Drupal\Core\Config\ReadOnlyStorage. | ||||
| ReadOnlyStream | abstract class | Drupal\Core\StreamWrapper | core/ |
Defines a read-only Drupal stream wrapper base class. | 1 | 1 |
Pagination
- Previous page
- Page 165
- Next page
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.