Classes, traits, and interfaces - 9.5.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 1523
| Name | Deprecated | Object type | Namespace | File name | Summary | Direct uses | Use statements | Strings |
|---|---|---|---|---|---|---|---|---|
| ReindexConfirm | class | Drupal\search\Form | core/ |
Provides the search reindex confirmation form. | 1 | |||
| RelatedResourceTypesTest | class | Drupal\Tests\jsonapi\Kernel\ResourceType | core/ |
@coversDefaultClass \Drupal\jsonapi\ResourceType\ResourceType[[api-linebreak]] @coversClass \Drupal\jsonapi\ResourceType\ResourceTypeRepository[[api-linebreak]] @group jsonapi | ||||
| RelationLinkManager | class | Drupal\hal\LinkManager | core/ |
2 | ||||
| RelationLinkManagerInterface | interface | Drupal\hal\LinkManager | core/ |
2 | ||||
| Relationship | class | Drupal\jsonapi\JsonApiResource | core/ |
Represents references from one resource object to other resource object(s). | 4 | |||
| RelationshipData | class | Drupal\jsonapi\JsonApiResource | core/ |
Represents the data of a relationship object or relationship document. | ||||
| RelationshipFieldAccess | class | Drupal\jsonapi\Access | core/ |
Defines a class to check access to related and relationship routes. | 2 | |||
| RelationshipJoinInTest | class | Drupal\Tests\views\Kernel\Plugin | core/ |
Tests the base relationship handler. | ||||
| RelationshipJoinTestBase | abstract class | Drupal\Tests\views\Kernel\Plugin | core/ |
Provides a base class for a testing a relationship. | 4 | |||
| RelationshipNodeTermDataTest | class | Drupal\Tests\taxonomy\Functional\Views | core/ |
Tests the taxonomy term on node relationship handler. | ||||
| RelationshipNormalizer | class | Drupal\jsonapi\Normalizer | core/ |
Normalizes a JSON:API relationship object. | 1 | 2 | ||
| RelationshipNormalizerTest | class | Drupal\Tests\jsonapi\Kernel\Normalizer | core/ |
@coversDefaultClass \Drupal\jsonapi\Normalizer\RelationshipNormalizer[[api-linebreak]] @group jsonapi | ||||
| RelationshipPluginBase | abstract class | Drupal\views\Plugin\views\relationship | core/ |
Relationship plugin base. | 5 | 2 | ||
| RelationshipRepresentativeNodeTest | class | Drupal\Tests\taxonomy\Functional\Views | core/ |
Tests the representative node relationship for terms. | ||||
| RelationshipRepresentativeNodeTest | class | Drupal\Tests\user\Kernel\Views | core/ |
Tests the representative node relationship for users. | ||||
| RelationshipRouteAccessCheck | final class | Drupal\jsonapi\Access | core/ |
Defines a class to check access to related and relationship routes. | 1 | 2 | ||
| RelationshipTest | class | Drupal\Tests\views\Kernel\Plugin | core/ |
Tests the base relationship handler. | ||||
| RelationshipUserFileDataTest | class | Drupal\Tests\file\Kernel\Views | core/ |
Tests file on user relationship handler. | ||||
| RelationshipUserImageDataTest | class | Drupal\Tests\image\Kernel\Views | core/ |
Tests image on user relationship handler. | ||||
| ReliableQueueInterface | interface | Drupal\Core\Queue | core/ |
Reliable queue interface. | 1 | |||
| RemoteFileDeleteRecursiveTest | class | Drupal\KernelTests\Core\File | core/ |
Tests the unmanaged file delete recursive function. | ||||
| RemoteFileDeleteTest | class | Drupal\KernelTests\Core\File | core/ |
Tests the unmanaged file delete function. | ||||
| RemoteFileDirectoryTest | class | Drupal\KernelTests\Core\File | core/ |
Tests operations dealing with directories. | ||||
| RemoteFileMoveTest | class | Drupal\KernelTests\Core\File | core/ |
Tests the unmanaged file move function. | ||||
| RemoteFileSaveDataTest | class | Drupal\KernelTests\Core\File | core/ |
Tests the unmanaged file save data function. | ||||
| RemoteFileSaveUploadTest | class | Drupal\Tests\file\Functional | core/ |
Tests the file uploading functions. | ||||
| RemoteFileScanDirectoryTest | class | Drupal\KernelTests\Core\File | core/ |
Tests \Drupal\Core\File\FileSystemInterface::scanDirectory(). | ||||
| RemoteFileUnmanagedCopyTest | class | Drupal\KernelTests\Core\File | core/ |
Tests the unmanaged file copy function. | ||||
| RemoveBlockForm | class | Drupal\layout_builder\Form | core/ |
Provides a form to confirm the removal of a block. | 1 | |||
| RemoveCommand | class | Drupal\Core\Ajax | core/ |
AJAX command for calling the jQuery remove() method. | 3 | |||
| RemovedPostUpdateNameException | class | Drupal\Core\Update | core/ |
An exception thrown for removed post-update functions. | 1 | |||
| RemoveRevisionMetadataBcLayerUpdateTest | class | Drupal\Tests\system\Functional\Update | core/ |
Tests the upgrade path for removing the revision metadata BC layer. | ||||
| RemoveRoleUser | class | Drupal\user\Plugin\Action | core/ |
Removes a role from a user. | 1 | |||
| RemoveRoleUserTest | class | Drupal\Tests\user\Unit\Plugin\Action | core/ |
@coversDefaultClass \Drupal\user\Plugin\Action\RemoveRoleUser[[api-linebreak]] @group user | ||||
| RemoveSectionForm | class | Drupal\layout_builder\Form | core/ |
Provides a form to confirm the removal of a section. | 1 | |||
| RenderableInterface | interface | Drupal\Core\Render | core/ |
Defines an object which can be rendered by the Render API. | 4 | 7 | ||
| RenderArrayNonHtmlSubscriber | class | Drupal\Core\EventSubscriber | core/ |
Throws 406 if requesting non-HTML format and controller returns render array. | 2 | |||
| RenderArrayNonHtmlSubscriberTest | class | Drupal\Tests\system\Functional\Render | core/ |
Functional test verifying that render array throws 406 for non-HTML requests. | ||||
| RenderArrayNonHtmlSubscriberTestController | class | Drupal\render_array_non_html_subscriber_test | core/ |
|||||
| RenderAttachedTestController | class | Drupal\render_attached_test\Controller | core/ |
Controller for various permutations of #attached in the render array. | 1 | |||
| RenderCache | class | Drupal\Core\Render | core/ |
Wraps the caching logic for the render caching system. | 1 | |||
| RenderCacheIntegrationTest | class | Drupal\Tests\views\Kernel | core/ |
Tests the general integration between views and the render cache. | ||||
| RenderCacheInterface | interface | Drupal\Core\Render | core/ |
Defines an interface for caching rendered render arrays. | 1 | 3 | ||
| RenderCacheTest | class | Drupal\KernelTests\Core\Render | core/ |
Tests the caching of render items via functional tests. | ||||
| RenderCacheWebTest | class | Drupal\Tests\views\Functional | core/ |
Tests render caching of blocks provided by views. | ||||
| RenderCallbackInterface | interface | Drupal\Core\Render\Element | core/ |
Indicates all public methods are safe to use in render callbacks. | 4 | 4 | ||
| RenderContext | class | Drupal\Core\Render | core/ |
The render context: a stack containing bubbleable rendering metadata. | 41 | |||
| RenderDeprecationController | class | Drupal\render_deprecation | core/ |
|||||
| RenderDeprecationTest | class | Drupal\FunctionalTests\Core\Render | core/ |
Tests deprecated render() function. | ||||
| RenderedEntity | class | Drupal\views\Plugin\views\field | core/ |
Provides a field handler which renders an entity in a certain view mode. |
Pagination
- Previous page
- Page 138
- Next page
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.