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 |
---|---|---|---|---|---|---|---|---|
QuoteAwareConstExprStringNode | class | PHPStan\PhpDocParser\Ast\ConstExpr | vendor/ |
|||||
QuotedPart | class | Egulias\EmailValidator\Warning | vendor/ |
1 | ||||
QuotedString | class | Egulias\EmailValidator\Warning | vendor/ |
1 | ||||
Radio | class | Drupal\Core\Render\Element | core/ |
Provides a form element for a single radio button. | ||||
Radios | class | Drupal\Core\Render\Element | core/ |
Provides a form element for a set of radio buttons. | 1 | |||
RadPHPInstaller | class | Composer\Installers | vendor/ |
|||||
Random | class | Drupal\Component\Utility | core/ |
Defines a utility class for creating random data. | 11 | |||
Random | class | Drupal\views\Plugin\views\sort | core/ |
Handle a random sort. | ||||
RandomBytesGenerator | class | Ramsey\Uuid\Generator | vendor/ |
RandomBytesGenerator generates strings of random binary data using the built-in `random_bytes()` PHP function | ||||
RandomGeneratorFactory | class | Ramsey\Uuid\Generator | vendor/ |
RandomGeneratorFactory retrieves a default random generator, based on the environment | 1 | |||
RandomGeneratorInterface | interface | Ramsey\Uuid\Generator | vendor/ |
A random generator generates strings of random binary data | 4 | 2 | ||
RandomIdGenerator | class | OpenTelemetry\SDK\Trace | vendor/ |
|||||
RandomLibAdapter | This class will be removed in 5.0.0. Use the default RandomBytesGenerator or implement your own generator that implements RandomGeneratorInterface. |
class | Ramsey\Uuid\Generator | vendor/ |
RandomLibAdapter generates strings of random binary data using the paragonie/random-lib library | |||
RandomNodeProvider | class | Ramsey\Uuid\Provider\Node | vendor/ |
RandomNodeProvider generates a random node ID | 1 | |||
RandomSourceException | class | Ramsey\Uuid\Exception | vendor/ |
Thrown to indicate that the source of random data encountered an error | 3 | |||
Range | class | Symfony\Component\Validator\Constraints | vendor/ |
Validates that a given number or DateTime object is between some minimum and maximum. | 1 | 2 | ||
Range | class | Drupal\Core\Render\Element | core/ |
Provides a slider for input of a number within a specific range. | ||||
RangeBinary | class | Twig\Node\Expression\Binary | vendor/ |
2 | ||||
RangeConstraint | class | Drupal\Core\Validation\Plugin\Validation\Constraint | core/ |
Range constraint. | ||||
RangeConstraintValidator | class | Drupal\Core\Validation\Plugin\Validation\Constraint | core/ |
Validator for the Drupal 'range' constraint. | ||||
RangeValidator | class | Symfony\Component\Validator\Constraints | vendor/ |
@author Bernhard Schussek <bschussek@gmail.com> | ||||
RarDownloader | class | Composer\Downloader | vendor/ |
RAR archive downloader. | ||||
RateLimitingSampler | class | Opentelemetry\Proto\Trace\V1 | vendor/ |
Sampler that tries to sample with a rate per time window. | ||||
RatioParser | class | OpenTelemetry\SDK\Common\Configuration\Parser | vendor/ |
1 | ||||
Raw | class | Drupal\views\Plugin\views\argument_default | core/ |
Default argument plugin to use the raw value from the URL. | ||||
RawCodeCoverageData | final class | SebastianBergmann\CodeCoverage\Data | vendor/ |
@internal This class is not covered by the backward compatibility promise for phpunit/php-code-coverage | 5 | |||
RawFilter | class | Twig\Node\Expression\Filter | vendor/ |
@author Fabien Potencier <fabien@symfony.com> | 1 | |||
RawInputStream | class | Google\Protobuf\Internal | vendor/ |
|||||
RawMessage | class | Symfony\Component\Mime | vendor/ |
@author Fabien Potencier <fabien@symfony.com> | 1 | 22 | ||
RdKafkaCaster | class | Symfony\Component\VarDumper\Caster | vendor/ |
Casts RdKafka related classes to array representation. | ||||
ReadableLogRecord | class | OpenTelemetry\SDK\Logs | vendor/ |
"Note: Typically this will be implemented with a new interface or (immutable) value type." | 1 | 3 | ||
ReadableSpanInterface | interface | OpenTelemetry\SDK\Trace | vendor/ |
1 | 4 | |||
Reader | interface | Doctrine\Common\Annotations | vendor/ |
Interface for annotation readers. | 4 | 1 | ||
Reader | final class | PHPUnit\Runner\Baseline | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | 1 | |||
Reader | class | Symfony\Component\CssSelector\Parser | vendor/ |
CSS selector reader. | 8 | |||
ReadOnlyException | class | Drupal\Core\TypedData\Exception | core/ |
Exception thrown when trying to write or set ready-only data. | ||||
ReadOnlyFilesystemCache | class | Twig\Cache | vendor/ |
Implements a cache on the filesystem that can only be read, not written to. | ||||
ReadonlyFunctionTokenEmulator | class | PhpParser\Lexer\TokenEmulator | vendor/ |
1 | ||||
ReadOnlyModeMethodFilter | class | Drupal\jsonapi\Routing | core/ |
Filters routes based on the HTTP method and JSON:API's read-only mode. | 2 | |||
ReadOnlyStorage | class | Drupal\Core\Config | core/ |
A ReadOnlyStorage decorates a storage and does not allow writing to it. | ||||
ReadOnlyStream | abstract class | Drupal\Core\StreamWrapper | core/ |
Defines a read-only Drupal stream wrapper base class. | ||||
ReadonlyTokenEmulator | final class | PhpParser\Lexer\TokenEmulator | vendor/ |
1 | ||||
ReadWriteLogRecord | class | OpenTelemetry\SDK\Logs | vendor/ |
4 | ||||
ReadWriteSpanInterface | interface | OpenTelemetry\SDK\Trace | vendor/ |
1 | 4 | |||
RealServiceInstantiator | class | Symfony\Component\DependencyInjection\LazyProxy\Instantiator | vendor/ |
Noop proxy instantiator - produces the real service instead of a proxy instance. | 1 | |||
Rearrange | class | Drupal\views_ui\Form\Ajax | core/ |
Provides a rearrange form for Views handlers. | ||||
RearrangeFilter | class | Drupal\views_ui\Form\Ajax | core/ |
Provides a rearrange form for Views filters. | ||||
Reason | interface | Egulias\EmailValidator\Result\Reason | vendor/ |
30 | 2 | |||
RebootableInterface | interface | Symfony\Component\HttpKernel | vendor/ |
Allows the Kernel to be rebooted using a temporary cache directory. | 1 | |||
RebuildPermissionsForm | class | Drupal\node\Form | core/ |
Form for rebuilding permissions. | 1 |