Classes, traits, and interfaces - main - 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 1529

Name Deprecated Object type Namespace File name Summary Direct uses Use statements Strings
RegistryTest class Drupal\Tests\Core\Theme core/tests/Drupal/Tests/Core/Theme/RegistryTest.php Tests Drupal\Core\Theme\Registry. 1
RegressionTest class Drupal\KernelTests\Core\Database core/tests/Drupal/KernelTests/Core/Database/RegressionTest.php Regression tests cases for the database layer.
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 Tests Drupal\jsonapi\ResourceType\ResourceType.
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. 1
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. 5
RelationshipNodeFileDataTest class Drupal\Tests\file\Kernel\Views core/modules/file/tests/src/Kernel/Views/RelationshipNodeFileDataTest.php Tests file on node relationship handler.
RelationshipNodeTermDataTest class Drupal\Tests\taxonomy\Kernel\Views core/modules/taxonomy/tests/src/Kernel/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 Tests Drupal\jsonapi\Normalizer\RelationshipNormalizer.
RelationshipPluginBase abstract class Drupal\views\Plugin\views\relationship core/modules/views/src/Plugin/views/relationship/RelationshipPluginBase.php Relationship plugin base. 6 2
RelationshipPluginBaseStub class Drupal\Tests\views\Unit\Plugin\query core/modules/views/tests/src/Unit/Plugin/query/RelationshipPluginBaseStub.php Provides a basic class extending RelationshipPluginBase.
RelationshipRepresentativeNodeTest class Drupal\Tests\node\Kernel\Views core/modules/node/tests/src/Kernel/Views/RelationshipRepresentativeNodeTest.php Tests the representative node relationship for users.
RelationshipRepresentativeNodeTest class Drupal\Tests\taxonomy\Kernel\Views core/modules/taxonomy/tests/src/Kernel/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.
Relative final class Drupal\Tests\Component\Annotation\Doctrine\Fixtures\Attribute core/tests/Drupal/Tests/Component/Annotation/Doctrine/Fixtures/Attribute/Relative.php #[SubDir\SubDirAttribute]
RelativeOrderBase abstract class Drupal\Core\Hook\Order core/lib/Drupal/Core/Hook/Order/RelativeOrderBase.php Orders an implementation relative to other implementations. 2
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.
RemoteFileInfo class Drupal\locale\File core/modules/locale/src/File/RemoteFileInfo.php Provides the locale remote file information.
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.
RemovableDependentPluginInterface interface Drupal\Core\Plugin core/lib/Drupal/Core/Plugin/RemovableDependentPluginInterface.php Provides an interface for plugins that react when dependencies are removed. 3 4
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
RemoveCheckToStringNodeVisitor final class Drupal\Core\Template core/lib/Drupal/Core/Template/RemoveCheckToStringNodeVisitor.php Defines a TwigNodeVisitor that replaces CheckToStringNodes.
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
RemoveHook class Drupal\Core\Hook\Attribute core/lib/Drupal/Core/Hook/Attribute/RemoveHook.php Removes an already existing implementation. 11
RemovePathKeyTest class Drupal\Tests\system\Functional\Update core/modules/system/tests/src/Functional/Update/RemovePathKeyTest.php Tests the upgrade path for the system.file schema update.
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 Tests Drupal\user\Plugin\Action\RemoveRoleUser.
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 6
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\Kernel\Render core/modules/system/tests/src/Kernel/Render/RenderArrayNonHtmlSubscriberTest.php Functional test verifying that render array throws 406 for non-HTML requests.
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 Controller for testing testing non-HTML requests.
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 1

Other projects


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