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 |
---|---|---|---|---|---|---|---|---|
RoleStorage | class | Drupal\user | core/ |
Controller class for user roles. | 1 | |||
RoleStorageInterface | interface | Drupal\user | core/ |
Defines an interface for role entity storage classes. | 1 | 5 | ||
RollbackAwareInterface | interface | Drupal\migrate\Event | core/ |
Interface for plugins that react to pre- or post-rollback events. | 1 | 2 | ||
RootAliasPackage | class | Composer\Package | vendor/ |
@author Jordi Boggiano <j.boggiano@seld.be> | 6 | |||
RootPackage | class | Composer\Package | vendor/ |
The root package represents the project's composer.json and contains additional metadata | 6 | |||
RootPackageInterface | interface | Composer\Package | vendor/ |
Defines additional fields that are only needed for the root package | 2 | 15 | ||
RootPackageLoader | class | Composer\Package\Loader | vendor/ |
ArrayLoader built for the sole purpose of loading the root package | 2 | |||
RootPackageRepository | class | Composer\Repository | vendor/ |
Root package repository. | 11 | |||
Rotate | class | Drupal\system\Plugin\ImageToolkit\Operation\gd | core/ |
Defines GD2 rotate operation. | ||||
RotateImageEffect | class | Drupal\image\Plugin\ImageEffect | core/ |
Rotates an image resource. | ||||
RoundcubeInstaller | class | Composer\Installers | vendor/ |
|||||
RoundingMode | final class | Ramsey\Uuid\Math | vendor/ |
Specifies a rounding behavior for numerical operations capable of discarding precision. | 2 | |||
RoundingNecessaryException | class | Brick\Math\Exception | vendor/ |
Exception thrown when a number cannot be represented at the requested scale without rounding. | 3 | |||
RoundRobinTransport | class | Symfony\Component\Mailer\Transport | vendor/ |
Uses several Transports using a round robin algorithm. | 1 | 1 | ||
RoutableFragmentRenderer | abstract class | Symfony\Component\HttpKernel\Fragment | vendor/ |
Adds the possibility to generate a fragment URI for a given Controller. | 3 | |||
Route | class | Symfony\Component\Routing\Attribute | vendor/ |
@author Fabien Potencier <fabien@symfony.com> @author Alexander M. Turek <me@derrabus.de> | 1 | |||
Route | class | Symfony\Component\Routing | vendor/ |
A Route describes a route and its parameters. | 1 | 101 | ||
Route | class | Drupal\migrate\Plugin\migrate\process | core/ |
Sets the destination route information based on the source link_path. | ||||
RouteAccessResponseSubscriber | class | Drupal\Core\EventSubscriber | core/ |
Response subscriber to bubble the route's access result's cacheability. | ||||
RouteBuilder | class | Drupal\Core\Routing | core/ |
Managing class for rebuilding the router table. | 1 | 1 | ||
RouteBuilder | class | Drupal\Core\ProxyClass\Routing | core/ |
Provides a proxy class for \Drupal\Core\Routing\RouteBuilder. | ||||
RouteBuilderInterface | interface | Drupal\Core\Routing | core/ |
Rebuilds the route information and dumps it. | 2 | 7 | ||
RouteBuildEvent | class | Drupal\Core\Routing | core/ |
Represents route building information as event. | 13 | |||
RouteCacheContext | class | Drupal\Core\Cache\Context | core/ |
Defines the RouteCacheContext service, for "per route" caching. | 1 | |||
RouteCircularReferenceException | class | Symfony\Component\Routing\Exception | vendor/ |
2 | ||||
RouteCollection | class | Symfony\Component\Routing | vendor/ |
A RouteCollection represents a set of Route instances. | 1 | 89 | ||
RouteCompiler | class | Drupal\Core\Routing | core/ |
Compiler to generate derived information from a Route necessary for matching. | 1 | |||
RouteCompiler | class | Symfony\Component\Routing | vendor/ |
RouteCompiler compiles Route instances to CompiledRoute instances. | 1 | 1 | ||
RouteCompilerInterface | interface | Symfony\Component\Routing | vendor/ |
RouteCompilerInterface is the interface that all RouteCompiler classes must implement. | 2 | 1 | ||
RouteConfigurator | class | Symfony\Component\Routing\Loader\Configurator | vendor/ |
@author Nicolas Grekas <p@tchwork.com> | 1 | |||
RouteEnhancer | class | Drupal\jsonapi\Routing | core/ |
Ensures the loaded entity matches the requested resource type. | 2 | |||
RouteMatch | class | Drupal\Core\Routing | core/ |
Default object representing the results of routing. | 9 | |||
RouteMatchInterface | interface | Drupal\Core\Routing | core/ |
Provides an interface for classes representing the result of routing. | 3 | 190 | ||
RouteMatchValueResolver | final class | Drupal\Core\Controller\ArgumentResolver | core/ |
Yields a RouteMatch object based on the request object passed along. | ||||
RouteMethodSubscriber | class | Drupal\Core\EventSubscriber | core/ |
Provides a default value for the HTTP method restriction on routes. | ||||
RouteNameCacheContext | class | Drupal\Core\Cache\Context | core/ |
Defines the RouteCacheContext service, for "per route name" caching. | 1 | 1 | ||
RouteNotFoundException | class | Symfony\Component\Routing\Exception | vendor/ |
Exception thrown when a route does not exist. | 14 | |||
RouteObjectInterface | interface | Drupal\Core\Routing | core/ |
Provides constants used for retrieving matched routes. | 22 | |||
RoutePreloader | class | Drupal\Core\Routing | core/ |
Defines a class that can pre-load non-admin routes. | ||||
RouteProcessorCsrf | class | Drupal\Core\Access | core/ |
Processes the outbound route to handle the CSRF token. | ||||
RouteProcessorCurrent | class | Drupal\Core\RouteProcessor | core/ |
Provides a route processor to replace <current>. | ||||
RouteProcessorManager | class | Drupal\Core\RouteProcessor | core/ |
Route processor manager. | ||||
RouteProvider | class | Drupal\Core\Routing | core/ |
A Route Provider front-end for all Drupal-stored routes. | ||||
RouteProviderInterface | interface | Drupal\Core\Routing | core/ |
Defines the route provider interface. | 2 | 23 | ||
RouteProviderLazyBuilder | class | Drupal\Core\Routing | core/ |
A Route Provider front-end for all Drupal-stored routes. | 1 | 1 | ||
Router | class | Symfony\Component\Routing | vendor/ |
The Router class is an example of the integration of all pieces of the routing system for easier use. | ||||
Router | class | Drupal\Core\Routing | core/ |
Router implementation in Drupal. | ||||
RouterDataCollector | class | Symfony\Component\HttpKernel\DataCollector | vendor/ |
@author Fabien Potencier <fabien@symfony.com> | ||||
RouterInterface | interface | Symfony\Component\Routing | vendor/ |
RouterInterface is the interface that all Router classes must implement. | 3 | 5 | ||
RouterListener | class | Symfony\Component\HttpKernel\EventListener | vendor/ |
Initializes the context from the request and sets request attributes based on a matching route. |