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 |
---|---|---|---|---|---|---|---|---|
ReferenceUsedNamesOnlySniff | class | SlevomatCodingStandard\Sniffs\Namespaces | vendor/ |
|||||
RefinableCacheableDependencyInterface | interface | Drupal\Core\Cache | core/ |
Allows to add cacheability metadata to an object for the current runtime. | 9 | 21 | ||
RefinableCacheableDependencyTrait | trait | Drupal\Core\Cache | core/ |
Trait for \Drupal\Core\Cache\RefinableCacheableDependencyInterface. | 8 | |||
RefinableCalculatedPermissions | class | Drupal\Core\Session | core/ |
Represents a calculated set of permissions with cacheable metadata. | ||||
RefinableCalculatedPermissionsInterface | interface | Drupal\Core\Session | core/ |
Defines the refinable calculated permissions interface. | 1 | 1 | ||
RefinableDependentAccessInterface | interface | Drupal\block_content\Access | core/ |
An interface to allow adding an access dependency. | 2 | 3 | ||
RefinableDependentAccessTrait | trait | Drupal\block_content\Access | core/ |
Trait for \Drupal\block_content\Access\RefinableDependentAccessInterface. | 2 | |||
Reflection | final class | Drupal\Component\Utility | core/ |
Provides helper methods for reflection. | 2 | |||
Reflection | final class | PHPUnit\Util | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | 4 | |||
ReflectionCallable | final class | Twig\Util | vendor/ |
@author Fabien Potencier <fabien@symfony.com> | 2 | |||
ReflectionCaster | class | Symfony\Component\VarDumper\Caster | vendor/ |
Casts Reflector related classes to array representation. | 3 | |||
ReflectionClassNewInstancePatch | class | Prophecy\Doubler\ClassPatch | vendor/ |
ReflectionClass::newInstance patch. Makes first argument of newInstance optional, since it works but signature is misleading | ||||
ReflectionException | final class | PHPUnit\Metadata | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | 2 | |||
ReflectionException | final class | PHPUnit\Framework\MockObject\Generator | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | 1 | |||
ReflectionException | final class | SebastianBergmann\CodeUnit | vendor/ |
|||||
ReflectionException | final class | SebastianBergmann\CodeCoverage | vendor/ |
1 | ||||
ReflectionFactory | class | Drupal\Component\Plugin\Factory | core/ |
A plugin factory that maps instance configuration to constructor arguments. | ||||
ReflectionHelper | class | DeepCopy\Reflection | vendor/ |
6 | ||||
ReflectionInterface | interface | Prophecy\Doubler\Generator | vendor/ |
Reflection interface. All reflected classes implement this interface. | ||||
ReflectionMapper | final class | SebastianBergmann\Type | vendor/ |
1 | ||||
RefreshVariablesTrait | trait | Drupal\Core\Test | core/ |
Provides a method to refresh in-memory configuration and state information. | ||||
Regex | class | Symfony\Component\Validator\Constraints | vendor/ |
Validates that a value matches a regular expression. | 1 | 2 | ||
Regex | class | Composer\Pcre | vendor/ |
3 | ||||
Regex | final class | Symfony\Polyfill\Intl\Idn\Resources\unidata | vendor/ |
@internal | 1 | |||
RegexConstraint | class | Drupal\Core\Validation\Plugin\Validation\Constraint | core/ |
Regex constraint. | 1 | 2 | ||
RegexDirectoryIterator | class | Drupal\Component\FileSystem | core/ |
Iterates over files whose names match a regular expression in a directory. | 2 | |||
RegExpLiteral | class | Peast\Syntax\Node | vendor/ |
A node that represents a regular expression literal. | ||||
RegexRecursiveFilterIterator | class | Drupal\Core\Plugin\Discovery | core/ |
Iterates over files whose names match a regular expression in a directory. | ||||
RegexValidator | class | Symfony\Component\Validator\Constraints | vendor/ |
Validates whether a value match or not given regexp pattern. | ||||
RegionalForm | class | Drupal\system\Form | core/ |
Configure regional settings for this site. | 1 | |||
RegisterAccessCheck | class | Drupal\user\Access | core/ |
Access check for user registration routes. | 2 | |||
RegisterAccessChecksPass | class | Drupal\Core\DependencyInjection\Compiler | core/ |
Adds services tagged 'access_check' to the access_manager service. | 1 | |||
RegisterAutoconfigureAttributesPass | final class | Symfony\Component\DependencyInjection\Compiler | vendor/ |
Reads #[Autoconfigure] attributes on definitions that are autoconfigured and don't have the "container.ignore_attributes" tag. | 1 | |||
RegisterControllerArgumentLocatorsPass | class | Symfony\Component\HttpKernel\DependencyInjection | vendor/ |
Creates the service-locators required by ServiceValueResolver. | ||||
RegisteredInstrument | final class | OpenTelemetry\SDK\Metrics | vendor/ |
@internal | ||||
RegisterEntityResolversCompilerPass | class | Drupal\serialization | core/ |
Adds services tagged 'entity_resolver' to the Serializer. | ||||
RegisterEnvVarProcessorsPass | class | Symfony\Component\DependencyInjection\Compiler | vendor/ |
Creates the container.env_var_processors_locator service. | ||||
RegisterEventSubscribersPass | class | Drupal\Core\DependencyInjection\Compiler | core/ |
Wraps the Symfony event subscriber pass to use different tag names. | 1 | |||
RegisterForm | class | Drupal\user | core/ |
Form handler for the user register forms. | 1 | |||
RegisterListenersPass | class | Symfony\Component\EventDispatcher\DependencyInjection | vendor/ |
Compiler pass to register tagged services for an event dispatcher. | 2 | |||
RegisterLocaleAwareServicesPass | class | Symfony\Component\HttpKernel\DependencyInjection | vendor/ |
Register all services that have the "kernel.locale_aware" tag into the listener. | ||||
RegisterReverseContainerPass | class | Symfony\Component\DependencyInjection\Compiler | vendor/ |
@author Nicolas Grekas <p@tchwork.com> | ||||
RegisterSerializationClassesCompilerPass | class | Drupal\serialization | core/ |
Adds services tagged 'normalizer' and 'encoder' to the Serializer. | 1 | 1 | ||
RegisterSerializationClassesCompilerPass | class | Drupal\jsonapi\DependencyInjection\Compiler | core/ |
Adds services tagged JSON:API-only normalizers to the Serializer. | 1 | |||
RegisterServicesForDestructionPass | class | Drupal\Core\DependencyInjection\Compiler | core/ |
Adds services to the "kernel.destructable_services" container parameter. | 1 | |||
RegisterServiceSubscribersPass | class | Symfony\Component\DependencyInjection\Compiler | vendor/ |
Compiler pass to register tagged services that require a service locator. | ||||
RegisterStreamWrappersPass | class | Drupal\Core\DependencyInjection\Compiler | core/ |
Adds services tagged 'stream_wrapper' to the stream_wrapper_manager service. | 1 | |||
Registry | final class | PHPUnit\Metadata\Parser | vendor/ |
Attribute and annotation information is static within a single PHP process. It is therefore okay to use a Singleton registry here. | 12 | |||
Registry | class | Drupal\Core\Theme | core/ |
Defines the theme registry service. | 5 | |||
Registry | class | Symfony\Component\VarExporter\Internal | vendor/ |
@author Nicolas Grekas <p@tchwork.com> | 2 |