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 |
---|---|---|---|---|---|---|---|---|
Recipe | final class | Drupal\Core\Recipe | core/ |
@internal This API is experimental. | 1 | |||
RecipeAppliedEvent | final class | Drupal\Core\Recipe | core/ |
Event dispatched after a recipe has been applied. | ||||
RecipeCommand | final class | Drupal\Core\Recipe | core/ |
Applies recipe. | ||||
RecipeConfigInstaller | final class | Drupal\Core\Recipe | core/ |
Extends the ConfigInstaller service for recipes. | ||||
RecipeConfigStorageWrapper | final class | Drupal\Core\Recipe | core/ |
Merges two storages together. | ||||
RecipeConfigurator | final class | Drupal\Core\Recipe | core/ |
@internal This API is experimental. | ||||
RecipeFileException | final class | Drupal\Core\Recipe | core/ |
@internal This API is experimental. | ||||
RecipeInfoCommand | final class | Drupal\Core\Recipe | core/ |
Shows information about a particular recipe. | ||||
RecipeInputFormTrait | trait | Drupal\Core\Recipe | core/ |
Defines helper methods for forms which collect input on behalf of recipes. | ||||
RecipeMissingExtensionsException | final class | Drupal\Core\Recipe | core/ |
Exception thrown when recipes contain or depend on missing extensions. | ||||
RecipeOverrideConfigStorage | final class | Drupal\Core\Recipe | core/ |
Wraps a config storage to allow recipe provided configuration to override it. | ||||
RecipePreExistingConfigException | class | Drupal\Core\Recipe | core/ |
Exception thrown when a recipe has configuration that exists already. | ||||
RecipeRunner | final class | Drupal\Core\Recipe | core/ |
Applies a recipe. | 1 | |||
Rectangle | class | Drupal\Component\Utility | core/ |
Rectangle rotation algebra class. | 1 | |||
RecursiveContextualValidator | class | Symfony\Component\Validator\Validator | vendor/ |
Recursive implementation of {@link ContextualValidatorInterface}. | ||||
RecursiveContextualValidator | class | Drupal\Core\TypedData\Validation | core/ |
Defines a recursive contextual validator for Typed Data. | ||||
RecursiveDirectoryIterator | class | Symfony\Component\Finder\Iterator | vendor/ |
Extends the \RecursiveDirectoryIterator to support relative paths. | 1 | |||
RecursiveExtensionFilterCallback | class | Drupal\Core\Extension\Discovery | core/ |
Filters a RecursiveDirectoryIterator to discover extensions. | 1 | |||
RecursiveExtensionFilterIterator | class | mglaman\PHPStanDrupal\Drupal | vendor/ |
Filters a RecursiveDirectoryIterator to discover extensions. | ||||
RecursiveValidator | class | Symfony\Component\Validator\Validator | vendor/ |
Recursive implementation of {@link ValidatorInterface}. | 2 | |||
RecursiveValidator | class | Drupal\Core\TypedData\Validation | core/ |
Defines a recursive validator for Typed Data. | 2 | |||
RecursiveValidatorFactory | class | Drupal\file\Validation | core/ |
Factory for creating a new RecursiveValidator. | 2 | |||
Redaxo5Installer | class | Composer\Installers | vendor/ |
|||||
RedaxoInstaller | class | Composer\Installers | vendor/ |
|||||
RedirectableUrlMatcher | abstract class | Symfony\Component\Routing\Matcher | vendor/ |
@author Fabien Potencier <fabien@symfony.com> | ||||
RedirectableUrlMatcherInterface | interface | Symfony\Component\Routing\Matcher | vendor/ |
RedirectableUrlMatcherInterface knows how to redirect the user. | 1 | 1 | ||
RedirectCommand | class | Drupal\Core\Ajax | core/ |
Defines an AJAX command to set the window.location, loading that URL. | 2 | |||
RedirectDestination | class | Drupal\Core\Routing | core/ |
Provides helpers for redirect destinations. | ||||
RedirectDestinationInterface | interface | Drupal\Core\Routing | core/ |
Provides an interface for redirect destinations. | 1 | 10 | ||
RedirectDestinationTrait | trait | Drupal\Core\Routing | core/ |
Wrapper methods for the Redirect Destination. | 9 | |||
RedirectLeadingSlashesSubscriber | class | Drupal\Core\EventSubscriber | core/ |
Redirects paths containing successive slashes to those with single slashes. | ||||
RedirectMiddleware | class | GuzzleHttp | vendor/ |
Request redirect middleware. | ||||
RedirectResponse | class | Symfony\Component\HttpFoundation | vendor/ |
RedirectResponse represents an HTTP response doing a redirect. | 2 | 30 | ||
RedirectResponseSubscriber | class | Drupal\Core\EventSubscriber | core/ |
Allows manipulation of the response object when performing a redirect. | 1 | |||
RedisCaster | class | Symfony\Component\VarDumper\Caster | vendor/ |
Casts Redis class from ext-redis to array representation. | ||||
RedisSessionHandler | class | Symfony\Component\HttpFoundation\Session\Storage\Handler | vendor/ |
Redis based session storage handler based on the Redis class provided by the PHP redis extension. | ||||
RedisStore | class | Symfony\Component\Lock\Store | vendor/ |
RedisStore is a PersistingStoreInterface implementation using Redis as store engine. | ||||
RedundantEditableConfigNamesTrait | trait | Drupal\Core\Form | core/ |
Implements ::getEditableConfigNames() for forms using #config_target. | 5 | |||
Reference | interface | phpDocumentor\Reflection\DocBlock\Tags\Reference | vendor/ |
Interface for references in { | 2 | 1 | ||
Reference | class | Symfony\Component\VarExporter\Internal | vendor/ |
@author Nicolas Grekas <p@tchwork.com> | ||||
Reference | class | Symfony\Component\DependencyInjection | vendor/ |
Reference represents a service reference. | 1 | 79 | ||
ReferenceAccessConstraint | class | Drupal\Core\Entity\Plugin\Validation\Constraint | core/ |
Entity Reference valid reference constraint. | ||||
ReferenceAccessConstraintValidator | class | Drupal\Core\Entity\Plugin\Validation\Constraint | core/ |
Checks if the current user has access to newly referenced entities. | ||||
ReferenceBase | abstract class | Drupal\migrate_drupal\Plugin\migrate\field | core/ |
Base class for Drupal reference fields. | 4 | 4 | ||
ReferenceConfigurator | class | Symfony\Component\DependencyInjection\Loader\Configurator | vendor/ |
@author Nicolas Grekas <p@tchwork.com> | 1 | 3 | ||
ReferenceCounterInterface | interface | OpenTelemetry\SDK\Metrics | vendor/ |
@internal | 4 | 7 | ||
ReferencedName | class | SlevomatCodingStandard\Helpers | vendor/ |
@internal | 6 | |||
ReferencedNameHelper | class | SlevomatCodingStandard\Helpers | vendor/ |
@internal | 7 | |||
ReferenceSpacingSniff | class | SlevomatCodingStandard\Sniffs\PHP | vendor/ |
|||||
ReferenceThrowableOnlySniff | class | SlevomatCodingStandard\Sniffs\Exceptions | vendor/ |