Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x

Classes, traits, and interfaces - Drupal 11.1.x - Drupal Core

Primary tabs

  • Drupal 11.1.x

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

Pagination

  • First page
  • Previous page
  • …
  • Page 151
  • Page 152
  • Page 153
  • Page 154
  • Page 155
  • Page 156
  • Page 157
  • Page 158
  • Page 159
  • …
  • Next page
  • Last page
RSS feed
Powered by Drupal