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

Pagination

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