Classes, traits, and interfaces - 9.5.x - drupal

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 1523

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

Other projects


Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.