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 |
|---|---|---|---|---|---|---|---|---|
| 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\Tests\Core\Command | core/ |
Tests the quick-start commands. | ||||
| QuickStartTestBase | abstract class | Drupal\BuildTests\QuickStart | core/ |
Helper methods for using the quickstart feature of Drupal. | 2 | 2 | ||
| 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 | class | Drupal\Component\Utility | core/ |
Defines a utility class for creating random data. | 30 | |||
| Random | abstract class | Drupal\TestTools | core/ |
Provides random generator utility static methods. | 20 | |||
| Random | class | Drupal\views\Plugin\views\sort | core/ |
Handle a random sort. | ||||
| RandomGeneratorTrait | trait | Drupal\Tests | core/ |
Provides random generator utility methods. | 2 | |||
| 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. | ||||
| RangeConstraintValidator | class | Drupal\Core\Validation\Plugin\Validation\Constraint | core/ |
Validator for the Drupal 'range' constraint. | ||||
| 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 | |||
| RawStringFormatterTest | class | Drupal\Tests\field\Kernel\KernelString | core/ |
Tests the raw string formatter. | ||||
| RawTest | class | Drupal\Tests\views\Unit\Plugin\argument_default | core/ |
@coversDefaultClass \Drupal\views\Plugin\views\argument_default\Raw[[api-linebreak]] @group views | ||||
| 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/ |
@coversDefaultClass \Drupal\Core\Config\ReadOnlyStorage[[api-linebreak]] @group Config | ||||
| ReadOnlyStream | abstract class | Drupal\Core\StreamWrapper | core/ |
Defines a read-only Drupal stream wrapper base class. | 1 | 1 | ||
| ReadOnlyStreamWrapperTest | class | Drupal\KernelTests\Core\File | core/ |
Tests the read-only stream wrapper write functions. | ||||
| Rearrange | class | Drupal\views_ui\Form\Ajax | core/ |
Provides a rearrange form for Views handlers. | ||||
| RearrangeFieldsTest | class | Drupal\Tests\views_ui\Functional | core/ |
Tests the reordering of fields via AJAX. | ||||
| RearrangeFilter | class | Drupal\views_ui\Form\Ajax | core/ |
Provides a rearrange form for Views filters. | 1 | |||
| RearrangeFilterTest | class | Drupal\Tests\views_ui\Unit\Form\Ajax | core/ |
Unit tests for Views UI module functions. | ||||
| RebuildPermissionsForm | class | Drupal\node\Form | core/ |
Form for rebuilding permissions. | 1 | |||
| RebuildScriptTest | class | Drupal\Tests\system\Functional\UpdateSystem | core/ |
Tests the rebuild script access and functionality. | ||||
| RebuildTest | class | Drupal\Tests\system\FunctionalJavascript\Form | core/ |
Tests functionality of \Drupal\Core\Form\FormBuilderInterface::rebuildForm(). | ||||
| RebuildTest | class | Drupal\Tests\system\Functional\Form | core/ |
Tests functionality of \Drupal\Core\Form\FormBuilderInterface::rebuildForm(). | ||||
| Recipe | final class | Drupal\Core\Recipe | core/ |
@internal This API is experimental. | 12 | |||
| RecipeAppliedEvent | final class | Drupal\Core\Recipe | core/ |
Event dispatched after a recipe has been applied. | 1 | |||
| RecipeCommand | final class | Drupal\Core\Recipe | core/ |
Applies recipe. | ||||
| RecipeCommandTest | class | Drupal\FunctionalTests\Core\Recipe | core/ |
@coversDefaultClass \Drupal\Core\Recipe\RecipeCommand[[api-linebreak]] @group Recipe | ||||
| RecipeConfigInstaller | final class | Drupal\Core\Recipe | core/ |
Extends the ConfigInstaller service for recipes. | ||||
| RecipeConfigStorageWrapper | final class | Drupal\Core\Recipe | core/ |
Merges two storages together. | 1 | |||
| RecipeConfigStorageWrapperTest | class | Drupal\Tests\Core\Recipe | core/ |
@coversDefaultClass \Drupal\Core\Recipe\RecipeConfigStorageWrapper[[api-linebreak]] @group Recipe | ||||
| RecipeConfigurator | final class | Drupal\Core\Recipe | core/ |
@internal This API is experimental. | 1 | |||
| RecipeConfiguratorTest | class | Drupal\KernelTests\Core\Recipe | core/ |
@coversDefaultClass \Drupal\Core\Recipe\RecipeConfigurator[[api-linebreak]] @group Recipe | ||||
| RecipeEventsTest | class | Drupal\KernelTests\Core\Recipe | core/ |
@group Recipe | ||||
| RecipeExtensionConfigStorage | final class | Drupal\Core\Recipe | core/ |
Allows the recipe to select configuration from the module. | ||||
| RecipeFileException | final class | Drupal\Core\Recipe | core/ |
@internal This API is experimental. | 3 | |||
| RecipeMissingExtensionsException | final class | Drupal\Core\Recipe | core/ |
Exception thrown when recipes contain or depend on missing extensions. | ||||
| RecipeOverrideConfigStorage | final class | Drupal\Core\Recipe | core/ |
Wraps a config storage to allow recipe provided configuration to override it. | ||||
| RecipePreExistingConfigException | class | Drupal\Core\Recipe | core/ |
Exception thrown when a recipe has configuration that exists already. | 2 | |||
| RecipeQuickStartTest | class | Drupal\Tests\Core\Recipe | core/ |
Tests the quick-start command with recipes. | ||||
| RecipeRunner | final class | Drupal\Core\Recipe | core/ |
Applies a recipe. | 12 |
Pagination
- Previous page
- Page 143
- Next page
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.