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 |
|---|---|---|---|---|---|---|---|---|
| RenderTest | class | Drupal\KernelTests\Core\Render | core/ |
Performs functional tests on \Drupal::service('renderer')->render(). | ||||
| RenderWebTest | class | Drupal\Tests\system\Functional\Common | core/ |
Performs integration tests on \Drupal::service('renderer')->render(). | ||||
| ReorderDisplays | class | Drupal\views_ui\Form\Ajax | core/ |
Displays the display reorder form. | ||||
| ReorderHook | class | Drupal\Core\Hook\Attribute | core/ |
Sets the order of an already existing implementation. | 11 | |||
| ReplaceCommand | class | Drupal\Core\Ajax | core/ |
AJAX command for calling the jQuery replace() method. | 14 | |||
| ReplaceOp | class | Drupal\Composer\Plugin\Scaffold\Operations | composer/ |
Scaffold operation to copy or symlink from source to destination. | 2 | |||
| ReplaceOpTest | class | Drupal\Tests\Composer\Plugin\Scaffold\Integration | core/ |
Tests Drupal\Composer\Plugin\Scaffold\Operations\ReplaceOp. | ||||
| ReplaceTitleCommand | class | Drupal\views\Ajax | core/ |
Provides an AJAX command for replacing the page title. | 1 | |||
| ReplicaKillSwitch | class | Drupal\Core\Database | core/ |
Provides replica server kill switch to ignore it. | 1 | 2 | ||
| ReplicaKillSwitchTest | class | Drupal\KernelTests\Core\Database | core/ |
Tests that ReplicaKillSwitch functions correctly. | ||||
| ReportFieldsTest | class | Drupal\Tests\views_ui\Functional | core/ |
Tests the Views fields report page. | ||||
| ReportTest | class | Drupal\Tests\views_ui\Functional | core/ |
Tests existence of the views plugin report. | ||||
| RequestContext | class | Drupal\Core\Routing | core/ |
Holds information about the current request. | 18 | 2 | ||
| RequestFormatCacheContext | class | Drupal\Core\Cache\Context | core/ |
Defines the RequestFormatCacheContext service, for "per format" caching. | 2 | |||
| RequestFormatRouteFilter | class | Drupal\Core\Routing | core/ |
Provides a route filter, which filters by the request format. | 1 | 2 | 2 | |
| RequestFormatRouteFilterTest | class | Drupal\Tests\Core\Routing | core/ |
Tests Drupal\Core\Routing\RequestFormatRouteFilter. | ||||
| RequestHandler | class | Drupal\rest | core/ |
Acts as intermediate request forwarder for resource plugins. | 2 | |||
| RequestHandlerTest | class | Drupal\Tests\rest\Kernel | core/ |
Test REST RequestHandler controller logic. | ||||
| RequestHelper | class | Drupal\Core\Routing | core/ |
Provides some helper methods for dealing with the request. | 1 | |||
| RequestPagerTest | class | Drupal\KernelTests\Core\Pager | core/ |
Tests Drupal\Core\Pager\PagerParameters. | ||||
| RequestPath | class | Drupal\system\Plugin\Condition | core/ |
Provides a 'Request Path' condition. | ||||
| RequestPathTest | class | Drupal\KernelTests\Core\Plugin\Condition | core/ |
Tests system.module's request path condition. | ||||
| RequestPolicyInterface | interface | Drupal\Core\PageCache | core/ |
Defines the interface for request policy implementations. | 6 | 16 | ||
| RequestSanitizer | class | Drupal\Core\Security | core/ |
Sanitizes user input. | 2 | |||
| RequestSanitizerTest | class | Drupal\Tests\Core\Security | core/ |
Tests RequestSanitizer class. | ||||
| RequestSanitizerTest | class | Drupal\FunctionalTests\HttpKernel | core/ |
Tests RequestSanitizerMiddleware. | ||||
| RequestStackCacheContextBase | abstract class | Drupal\Core\Cache\Context | core/ |
Defines a base class for cache contexts depending only on the request stack. | 12 | |||
| RequeueException | class | Drupal\Core\Queue | core/ |
Throw this exception to release the item allowing it to be processed again. | 3 | |||
| RequiredConfigDependenciesConstraint | class | Drupal\Core\Config\Plugin\Validation\Constraint | core/ |
Checks that config dependencies contain specific types of entities. | ||||
| RequiredConfigDependenciesConstraintValidator | class | Drupal\Core\Config\Plugin\Validation\Constraint | core/ |
Validates the RequiredConfigDependencies constraint. | ||||
| RequiredConstraint | class | Drupal\Core\Validation\Plugin\Validation\Constraint | core/ |
Marks a field as required in a Collection constraint. | ||||
| RequiredFieldStorageDefinitionInterface | interface | Drupal\Core\Field | core/ |
Defines an interface for required field storage definitions. | 1 | 1 | ||
| RequiredModuleUninstallValidator | class | Drupal\Core\Extension | core/ |
Ensures that required modules cannot be uninstalled. | 1 | 2 | ||
| RequiredModuleUninstallValidatorTest | class | Drupal\Tests\Core\Extension | core/ |
Tests Drupal\Core\Extension\RequiredModuleUninstallValidator. | ||||
| RequiredStateMissingException | class | Drupal\workflows\Exception | core/ |
Indicates that a workflow does not contain a required state. | 2 | |||
| RequiredStatesTest | class | Drupal\Tests\workflows\Kernel | core/ |
Tests Workflow type's required states and configuration initialization. | ||||
| RequiredStateTestType | class | Drupal\workflow_type_test\Plugin\WorkflowType | core/ |
Test workflow type. | ||||
| Requirements1TestHooks | class | Drupal\requirements1_test\Hook | core/ |
Hook implementations for requirements1_test. | ||||
| RequirementsAwareDestinationInterface | interface | Drupal\Tests\migrate\Unit | core/ |
Defines the RequirementsAwareDestinationInterface. | ||||
| RequirementsAwareSourceInterface | interface | Drupal\Tests\migrate\Unit | core/ |
Defines the RequirementsAwareSourceInterface. | ||||
| RequirementSeverityTest | class | Drupal\Tests\Core\Extension\Requirement | core/ |
Tests Drupal\Core\Extension\Requirement\RequirementSeverity. | ||||
| RequirementsException | class | Drupal\migrate\Exception | core/ |
Defines an exception thrown when a migration does not meet the requirements. | 33 | |||
| RequirementsExceptionTest | class | Drupal\Tests\migrate\Unit\Exception | core/ |
Tests Drupal\migrate\Exception\RequirementsException. | ||||
| RequirementsInterface | interface | Drupal\migrate\Plugin | core/ |
An interface to check for a migrate plugin requirements. | 5 | 7 | ||
| RequirementsPageTrait | trait | Drupal\Tests | core/ |
Provides helper methods for the requirements page. | 14 | |||
| RequirementsTest | class | Drupal\Tests\system\Kernel\Module | core/ |
Covers hook_requirements and hook_requirements_alter. | ||||
| RequirementsTest | class | Drupal\Tests\file\Kernel | core/ |
Tests the file requirements. | ||||
| RequirementsTest | class | Drupal\Tests\mysql\Functional | core/ |
Tests isolation level warning when the config is set in settings.php. | ||||
| RequirementsTrait | trait | Drupal\mysql | core/ |
Runtime requirements trait. | 2 | |||
| RequiresComposerTrait | trait | Drupal\TestTools\Extension | core/ |
Ensures Composer executable is available, skips test otherwise. | 1 |
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.