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 |
---|---|---|---|---|---|---|---|---|
Routes | class | Drupal\jsonapi\Routing | core/ |
Defines dynamic routes. | 8 | |||
RouteSubscriber | class | Drupal\views\EventSubscriber | core/ |
Builds up the routes of all views. | 2 | |||
RouteSubscriber | class | Drupal\workspaces_ui\Routing | core/ |
Subscriber for Workspaces routes. | 2 | |||
RouteSubscriber | class | Drupal\config_translation\Routing | core/ |
Listens to the dynamic route events. | 2 | |||
RouteSubscriber | class | Drupal\block_content\Routing | core/ |
Subscriber for Block content BC routes. | 2 | |||
RouteSubscriber | class | Drupal\media_library\Routing | core/ |
Subscriber for media library routes. | 2 | |||
RouteSubscriber | class | Drupal\node\Routing | core/ |
Listens to the dynamic route events. | 2 | |||
RouteSubscriber | class | Drupal\field_ui\Routing | core/ |
Subscriber for Field UI routes. | 2 | |||
RouteSubscriberBase | abstract class | Drupal\Core\Routing | core/ |
Provides a base implementation for RouteSubscriber. | 16 | 16 | ||
RouteTrait | trait | Symfony\Component\Routing\Loader\Configurator\Traits | vendor/ |
|||||
RoutingAccessSniff | class | DrupalPractice\Sniffs\Yaml | vendor/ |
Checks that there are no undocumented open access callbacks in *.routing.yml files. | ||||
RoutingConfigurator | class | Symfony\Component\Routing\Loader\Configurator | vendor/ |
@author Nicolas Grekas <p@tchwork.com> | 1 | |||
RoutingEvents | final class | Drupal\Core\Routing | core/ |
Contains all events thrown in the core routing component. | 21 | |||
RoutingResolverPass | class | Symfony\Component\Routing\DependencyInjection | vendor/ |
Adds tagged routing.loader services to routing.resolver service. | ||||
Row | class | Drupal\migrate | core/ |
Stores a row. | 177 | |||
RowCountException | class | Drupal\Core\Database | core/ |
Exception thrown if a SELECT query trying to execute rowCount() on result. | ||||
RowPluginBase | abstract class | Drupal\views\Plugin\views\row | core/ |
Base class for Views row plugins. | 8 | 3 | ||
Rss | class | Drupal\comment\Plugin\views\row | core/ |
Plugin which formats the comments as RSS items. | ||||
Rss | class | Drupal\node\Plugin\views\row | core/ |
Performs a node_view on the resulting object and formats it as an RSS item. | ||||
Rss | class | Drupal\views\Plugin\views\style | core/ |
Default style plugin to render an RSS feed. | ||||
RSSEnclosureFormatter | class | Drupal\file\Plugin\Field\FieldFormatter | core/ |
Plugin implementation of the 'file_rss_enclosure' formatter. | ||||
RssFeedsForm | class | Drupal\system\Form | core/ |
Configure RSS settings for this site. | 1 | |||
RssFields | class | Drupal\views\Plugin\views\row | core/ |
Renders an RSS item based on fields. | ||||
RssPluginBase | abstract class | Drupal\views\Plugin\views\row | core/ |
Base class for Views RSS row plugins. | 2 | 2 | ||
RssResponseCdata | class | Drupal\Core\EventSubscriber | core/ |
Subscribes to wrap RSS descriptions in CDATA. | ||||
RssResponseRelativeUrlFilter | class | Drupal\Core\EventSubscriber | core/ |
Subscribes to filter RSS responses, to make relative URIs absolute. | ||||
RsyncIsAvailable | final class | PhpTuf\ComposerStager\Internal\Precondition\Service | vendor/ |
@package Precondition | 2 | |||
RsyncIsAvailableInterface | interface | PhpTuf\ComposerStager\API\Precondition\Service | vendor/ |
Asserts that rsync is available on the host. | 1 | 2 | ||
RsyncProcessRunner | final class | PhpTuf\ComposerStager\Internal\Process\Service | vendor/ |
Before using this class outside the internal layer, consider a higher-level abstraction, e.g.: | 2 | |||
RsyncProcessRunnerInterface | interface | PhpTuf\ComposerStager\API\Process\Service | vendor/ |
Runs rsync commands. | 1 | 2 | ||
RsyncValidator | final class | Drupal\package_manager\Validator | core/ |
Checks that rsync is available. | ||||
Rule | abstract class | Composer\DependencyResolver | vendor/ |
@author Nils Adermann <naderman@naderman.de> @author Ruben Gonzalez <rubenrua@gmail.com> @phpstan-type ReasonData Link|BasePackage|string|int|array{packageName: string, constraint: ConstraintInterface}|array{package: BasePackage} | 3 | 1 | ||
Rule2Literals | class | Composer\DependencyResolver | vendor/ |
@author Nils Adermann <naderman@naderman.de> @phpstan-import-type ReasonData from Rule | ||||
RuleReasonDataReturnTypeExtension | final class | Composer\PHPStan | vendor/ |
|||||
RuleSet | class | Composer\DependencyResolver | vendor/ |
@author Nils Adermann <naderman@naderman.de> @implements \IteratorAggregate<Rule> @internal @final | ||||
Ruleset | class | PHP_CodeSniffer | vendor/ |
7 | ||||
RuleSetGenerator | class | Composer\DependencyResolver | vendor/ |
@author Nils Adermann <naderman@naderman.de> @phpstan-import-type ReasonData from Rule | ||||
RuleSetIterator | class | Composer\DependencyResolver | vendor/ |
@author Nils Adermann <naderman@naderman.de> @implements \Iterator<RuleSet::TYPE_*|-1, Rule> | ||||
RulesInterface | interface | Masterminds\HTML5\Serializer | vendor/ |
To create a new rule set for writing output the RulesInterface needs to be implemented. The resulting class can be specified in the options with the key of rules. | 1 | |||
RuleWatchChain | class | Composer\DependencyResolver | vendor/ |
An extension of SplDoublyLinkedList with seek and removal of current element | ||||
RuleWatchGraph | class | Composer\DependencyResolver | vendor/ |
The RuleWatchGraph efficiently propagates decisions to other rules | ||||
RuleWatchNode | class | Composer\DependencyResolver | vendor/ |
Wrapper around a Rule which keeps track of the two literals it watches | ||||
RunClassInSeparateProcess | final class | PHPUnit\Metadata | vendor/ |
@psalm-immutable | ||||
RunClassInSeparateProcess | final class | PHPUnit\Framework\Attributes | vendor/ |
@psalm-immutable | 1 | |||
RunCommandContext | final class | Symfony\Component\Console\Messenger | vendor/ |
@author Kevin Bond <kevinbond@gmail.com> | 1 | |||
RunCommandFailedException | final class | Symfony\Component\Console\Exception | vendor/ |
@author Kevin Bond <kevinbond@gmail.com> | 2 | |||
RunCommandMessage | class | Symfony\Component\Console\Messenger | vendor/ |
@author Kevin Bond <kevinbond@gmail.com> | ||||
RunCommandMessageHandler | final class | Symfony\Component\Console\Messenger | vendor/ |
@author Kevin Bond <kevinbond@gmail.com> | ||||
RunInSeparateProcess | final class | PHPUnit\Framework\Attributes | vendor/ |
@psalm-immutable | 1 | |||
RunInSeparateProcess | final class | PHPUnit\Metadata | vendor/ |
@psalm-immutable |