Classes, traits, and interfaces - Drupal 11.1.x - Drupal Core
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 |
---|---|---|---|---|---|---|---|---|
ReturnTypeNode | final class | Prophecy\Doubler\Generator\Node | vendor/ |
4 | ||||
ReturnValueGenerator | final class | PHPUnit\Framework\MockObject | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | ||||
ReturnValueMap | final class | PHPUnit\Framework\MockObject\Stub | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | 3 | |||
ReturnValueNotConfiguredException | final class | PHPUnit\Framework\MockObject | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | ||||
Return_ | class | PhpParser\Node\Stmt | vendor/ |
1 | ||||
Return_ | final class | phpDocumentor\Reflection\DocBlock\Tags | vendor/ |
Reflection class for a {return tag in a Docblock. | 2 | |||
Revealer | class | Prophecy\Prophecy | vendor/ |
Basic prophecies revealer. | 1 | |||
RevealerInterface | interface | Prophecy\Prophecy | vendor/ |
Prophecies revealer interface. | 1 | 1 | ||
ReverseContainer | final class | Drupal\Component\DependencyInjection | core/ |
Retrieves service IDs from the container for public services. | 3 | |||
ReverseContainer | final class | Symfony\Component\DependencyInjection | vendor/ |
Turns public and "container.reversible" services back to their ids. | ||||
ReverseEmulator | final class | PhpParser\Lexer\TokenEmulator | vendor/ |
Reverses emulation direction of the inner emulator. | 1 | |||
ReverseProxyMiddleware | class | Drupal\Core\StackMiddleware | core/ |
Provides support for reverse proxies. | 2 | |||
RevertOverridesForm | class | Drupal\layout_builder\Form | core/ |
Reverts the overridden layout to the defaults. | ||||
ReviewForm | class | Drupal\migrate_drupal_ui\Form | core/ |
Migrate Upgrade review form. | 1 | |||
RevisionableContentEntityBase | abstract class | Drupal\Core\Entity | core/ |
Provides a content entity with extended support for revisions. | ||||
RevisionableEntityBundleInterface | interface | Drupal\Core\Entity | core/ |
Provides an interface defining a revisionable entity bundle. | 4 | 5 | ||
RevisionableInterface | interface | Drupal\Core\Entity | core/ |
Provides methods for an entity to support revisions. | 2 | 16 | ||
RevisionableStorageInterface | interface | Drupal\Core\Entity | core/ |
A storage that supports revisionable entity types. | 1 | 3 | ||
RevisionDeleteForm | class | Drupal\Core\Entity\Form | core/ |
Provides a form for deleting an entity revision. | 3 | |||
RevisionHtmlRouteProvider | class | Drupal\Core\Entity\Routing | core/ |
Provides entity revision routes. | 3 | |||
RevisionLink | class | Drupal\node\Plugin\views\field | core/ |
Field handler to present a link to a node revision. | 2 | |||
RevisionLinkDelete | class | Drupal\node\Plugin\views\field | core/ |
Field handler to present link to delete a node revision. | ||||
RevisionLinkRevert | class | Drupal\node\Plugin\views\field | core/ |
Field handler to present a link to revert a node to a revision. | ||||
RevisionLogEntityTrait | trait | Drupal\Core\Entity | core/ |
Provides a trait for accessing revision logging and ownership information. | ||||
RevisionLogInterface | interface | Drupal\Core\Entity | core/ |
Defines methods for an entity that supports revision logging and ownership. | 7 | 11 | ||
RevisionRevertForm | class | Drupal\Core\Entity\Form | core/ |
Provides a form for reverting an entity revision. | 3 | |||
RewindableGenerator | class | Symfony\Component\DependencyInjection\Argument | vendor/ |
@internal | 5 | |||
Rfc2231Encoder | final class | Symfony\Component\Mime\Encoder | vendor/ |
@author Chris Corbyn | 1 | |||
Rfc3339 | class | JsonSchema | vendor/ |
1 | ||||
Rfc7230 | final class | GuzzleHttp\Psr7 | vendor/ |
@internal | ||||
RfcComplianceException | class | Symfony\Component\Mime\Exception | vendor/ |
@author Fabien Potencier <fabien@symfony.com> | 1 | 5 | ||
RfcLoggerTrait | trait | Drupal\Core\Logger | core/ |
A copy of \Psr\Log\LoggerTrait that uses RFC 5424 compliant log levels. | 2 | |||
RfcLogLevel | class | Drupal\Core\Logger | core/ |
Defines various logging severity levels. | 5 | |||
RFCValidation | class | Egulias\EmailValidator\Validation | vendor/ |
1 | 2 | |||
RFCWarnings | class | Egulias\EmailValidator\Result\Reason | vendor/ |
1 | ||||
Risky | final class | PHPUnit\Framework\TestStatus | vendor/ |
@psalm-immutable | ||||
Role | class | Drupal\user\Entity | core/ |
Defines the user role entity class. | 15 | 1 | ||
Role | class | Drupal\user\Plugin\views\access | core/ |
Access plugin that provides role-based access control. | ||||
Role | class | Drupal\user\Plugin\migrate\source\d6 | core/ |
Drupal 6 role source from database. | ||||
Role | class | Drupal\user\Plugin\migrate\source\d7 | core/ |
Drupal 7 role source from database. | ||||
RoleAccessCheck | class | Drupal\user\Access | core/ |
Determines access to routes based on roles. | 2 | |||
RoleAccessControlHandler | class | Drupal\user | core/ |
Defines the access control handler for the user role entity type. | 1 | |||
RoleForm | class | Drupal\user | core/ |
Form controller for the role entity edit forms. | 1 | |||
RoleInterface | interface | Drupal\user | core/ |
Provides an interface defining a user role entity. | 1 | 22 | ||
RoleListBuilder | class | Drupal\user | core/ |
Defines a class to build a listing of user role entities. | 1 | |||
Roles | class | Drupal\user\Plugin\views\filter | core/ |
Filter handler for user roles. | ||||
Roles | class | Drupal\user\Plugin\views\field | core/ |
Field handler to provide a list of roles. | ||||
RoleSettingsForm | class | Drupal\user\Form | core/ |
Configure administrator role settings for this site. | 1 | |||
RolesLookup | class | Drupal\block\Plugin\migrate\process | core/ |
Gets the destination roles ID for an array of source roles IDs. | ||||
RolesRid | class | Drupal\user\Plugin\views\argument | core/ |
Allow role ID(s) as argument. |