Classes, traits, and interfaces - 10.3.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 1518

Name Deprecated Object type Namespace File name Summary Direct uses Use statements Strings
ReverseContainerTest class Drupal\Tests\Component\DependencyInjection core/tests/Drupal/Tests/Component/DependencyInjection/ReverseContainerTest.php @runTestsInSeparateProcesses The reverse container uses a static to maintain information across container rebuilds.
ReverseProxyMiddleware class Drupal\Core\StackMiddleware core/lib/Drupal/Core/StackMiddleware/ReverseProxyMiddleware.php Provides support for reverse proxies. 3 2
ReverseProxyMiddlewareTest class Drupal\Tests\Core\StackMiddleware core/tests/Drupal/Tests/Core/StackMiddleware/ReverseProxyMiddlewareTest.php Unit test the reverse proxy stack middleware.
RevertOverridesForm class Drupal\layout_builder\Form core/modules/layout_builder/src/Form/RevertOverridesForm.php Reverts the overridden layout to the defaults.
ReviewForm class Drupal\migrate_drupal_ui\Form core/modules/migrate_drupal_ui/src/Form/ReviewForm.php Migrate Upgrade review form. 1
ReviewPageTest class Drupal\Tests\book\Functional\Migrate\d6 core/modules/book/tests/src/Functional/Migrate/d6/ReviewPageTest.php Tests Review page.
ReviewPageTest class Drupal\Tests\book\Functional\Migrate\d7 core/modules/book/tests/src/Functional/Migrate/d7/ReviewPageTest.php Tests Review page.
ReviewPageTest class Drupal\Tests\tracker\Functional\Migrate core/modules/tracker/tests/src/Functional/Migrate/ReviewPageTest.php Tests Review page.
RevisionableContentEntityBase abstract class Drupal\Core\Entity core/lib/Drupal/Core/Entity/RevisionableContentEntityBase.php Provides a content entity with extended support for revisions. 1 1
RevisionableContentEntityBaseTest class Drupal\KernelTests\Core\Entity core/tests/Drupal/KernelTests/Core/Entity/RevisionableContentEntityBaseTest.php Test the revision system.
RevisionableEntity abstract class Drupal\Tests\Core\Entity core/tests/Drupal/Tests/Core/Entity/EntityUrlTest.php
RevisionableEntityBundleInterface interface Drupal\Core\Entity core/lib/Drupal/Core/Entity/RevisionableEntityBundleInterface.php Provides an interface defining a revisionable entity bundle. 4 5
RevisionableInterface interface Drupal\Core\Entity core/lib/Drupal/Core/Entity/RevisionableInterface.php Provides methods for an entity to support revisions. 3 19
RevisionableStorageInterface interface Drupal\Core\Entity core/lib/Drupal/Core/Entity/RevisionableStorageInterface.php A storage that supports revisionable entity types. 1 3
RevisionCreateTimestampTest class Drupal\Tests\node\Kernel\Views core/modules/node/tests/src/Kernel/Views/RevisionCreateTimestampTest.php Ensures that the revision create time can be accessed in views.
RevisionDeleteForm class Drupal\Core\Entity\Form core/lib/Drupal/Core/Entity/Form/RevisionDeleteForm.php Provides a form for deleting an entity revision. 2
RevisionDeleteFormTest class Drupal\FunctionalTests\Entity core/tests/Drupal/FunctionalTests/Entity/RevisionDeleteFormTest.php Tests deleting a revision with revision delete form.
RevisionHtmlRouteProvider class Drupal\Core\Entity\Routing core/lib/Drupal/Core/Entity/Routing/RevisionHtmlRouteProvider.php Provides entity revision routes. 2
RevisionLink class Drupal\node\Plugin\views\field core/modules/node/src/Plugin/views/field/RevisionLink.php Field handler to present a link to a node revision. 2 1
RevisionLinkDelete class Drupal\node\Plugin\views\field core/modules/node/src/Plugin/views/field/RevisionLinkDelete.php Field handler to present link to delete a node revision. 2
RevisionLinkDeleteTest class Drupal\Tests\node\Unit\Plugin\views\field core/modules/node/tests/src/Unit/Plugin/views/field/RevisionLinkDeleteTest.php @coversDefaultClass \Drupal\node\Plugin\views\field\RevisionLinkDelete[[api-linebreak]] @group node
RevisionLinkRevert class Drupal\node\Plugin\views\field core/modules/node/src/Plugin/views/field/RevisionLinkRevert.php Field handler to present a link to revert a node to a revision.
RevisionLinkRevertTest class Drupal\Tests\node\Unit\Plugin\views\field core/modules/node/tests/src/Unit/Plugin/views/field/RevisionLinkRevertTest.php @coversDefaultClass \Drupal\node\Plugin\views\field\RevisionLinkRevert[[api-linebreak]] @group node
RevisionLinkTest class Drupal\Tests\node\Unit\Plugin\views\field core/modules/node/tests/src/Unit/Plugin/views/field/RevisionLinkTest.php @coversDefaultClass \Drupal\node\Plugin\views\field\RevisionLink[[api-linebreak]] @group node
RevisionLinkTest class Drupal\Tests\node\Functional\Views core/modules/node/tests/src/Functional/Views/RevisionLinkTest.php Tests the different revision link handlers.
RevisionLogEntityTrait trait Drupal\Core\Entity core/lib/Drupal/Core/Entity/RevisionLogEntityTrait.php Provides a trait for accessing revision logging and ownership information. 1
RevisionLogInterface interface Drupal\Core\Entity core/lib/Drupal/Core/Entity/RevisionLogInterface.php Defines methods for an entity that supports revision logging and ownership. 8 17
RevisionRelationshipsTest class Drupal\Tests\block_content\Kernel\Views core/modules/block_content/tests/src/Kernel/Views/RevisionRelationshipsTest.php Tests the integration of block_content_revision table.
RevisionRelationshipsTest class Drupal\Tests\node\Kernel\Views core/modules/node/tests/src/Kernel/Views/RevisionRelationshipsTest.php Tests the integration of node_revision table of node module.
RevisionRevertForm class Drupal\Core\Entity\Form core/lib/Drupal/Core/Entity/Form/RevisionRevertForm.php Provides a form for reverting an entity revision. 2
RevisionRevertFormTest class Drupal\FunctionalTests\Entity core/tests/Drupal/FunctionalTests/Entity/RevisionRevertFormTest.php Tests reverting a revision with revision revert form.
RevisionRouteProviderTest class Drupal\FunctionalTests\Entity core/tests/Drupal/FunctionalTests/Entity/RevisionRouteProviderTest.php Tests revision route provider.
RevisionRouteProviderTest class Drupal\KernelTests\Core\Entity core/tests/Drupal/KernelTests/Core/Entity/RevisionRouteProviderTest.php Tests revision route provider.
RevisionUidTest class Drupal\Tests\node\Kernel\Views core/modules/node/tests/src/Kernel/Views/RevisionUidTest.php Tests the node_revision_uid field.
RevisionUserTest class Drupal\Tests\media\Kernel\Views core/modules/media/tests/src/Kernel/Views/RevisionUserTest.php Tests the media_revision_user field.
RevisionUserTest class Drupal\Tests\block_content\Kernel\Views core/modules/block_content/tests/src/Kernel/Views/RevisionUserTest.php Tests the block_content_revision_user field.
RevisionVersionHistoryTest class Drupal\FunctionalTests\Entity core/tests/Drupal/FunctionalTests/Entity/RevisionVersionHistoryTest.php Tests version history page.
RevisionVersionHistoryTranslatableTest final class Drupal\FunctionalTests\Entity core/tests/Drupal/FunctionalTests/Entity/RevisionVersionHistoryTranslatableTest.php Tests version history page with translations.
RevisionViewTest class Drupal\FunctionalTests\Entity core/tests/Drupal/FunctionalTests/Entity/RevisionViewTest.php Tests revision view page.
RfcLoggerTrait trait Drupal\Core\Logger core/lib/Drupal/Core/Logger/RfcLoggerTrait.php A copy of \Psr\Log\LoggerTrait that uses RFC 5424 compliant log levels. 5
RfcLogLevel class Drupal\Core\Logger core/lib/Drupal/Core/Logger/RfcLogLevel.php Defines various logging severity levels. 22
Role class Drupal\user\Entity core/modules/user/src/Entity/Role.php Defines the user role entity class. 119
Role class Drupal\user\Plugin\views\access core/modules/user/src/Plugin/views/access/Role.php Access plugin that provides role-based access control. 1
Role class Drupal\user\Plugin\migrate\source\d6 core/modules/user/src/Plugin/migrate/source/d6/Role.php Drupal 6 role source from database.
Role class Drupal\user\Plugin\migrate\source\d7 core/modules/user/src/Plugin/migrate/source/d7/Role.php Drupal 7 role source from database.
RoleAccessCheck class Drupal\user\Access core/modules/user/src/Access/RoleAccessCheck.php Determines access to routes based on roles. 1 2
RoleAccessCheckTest class Drupal\Tests\Core\Route core/tests/Drupal/Tests/Core/Route/RoleAccessCheckTest.php @coversDefaultClass \Drupal\user\Access\RoleAccessCheck[[api-linebreak]] @group Access @group Route
RoleAccessControlHandler class Drupal\user core/modules/user/src/RoleAccessControlHandler.php Defines the access control handler for the user role entity type.
RoleForm class Drupal\user core/modules/user/src/RoleForm.php Form controller for the role entity edit forms.
RoleInterface interface Drupal\user core/modules/user/src/RoleInterface.php Provides an interface defining a user role entity. 1 127

Other projects


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