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 |
---|---|---|---|---|---|---|---|---|
Request | class | Composer\DependencyResolver | vendor/ |
@author Nils Adermann <naderman@naderman.de> | 6 | |||
Request | class | Symfony\Component\BrowserKit | vendor/ |
@author Fabien Potencier <fabien@symfony.com> | 1 | |||
RequestAttributeValueResolver | final class | Symfony\Component\HttpKernel\Controller\ArgumentResolver | vendor/ |
Yields a non-variadic argument's value from the request attributes. | 1 | |||
RequestAttributeValueSame | final class | Symfony\Component\HttpFoundation\Test\Constraint | vendor/ |
|||||
RequestAwareTrait | trait | Http\Client\Exception | vendor/ |
|||||
RequestContext | class | Drupal\Core\Routing | core/ |
Holds information about the current request. | 6 | |||
RequestContext | class | Symfony\Component\Routing | vendor/ |
Holds information about the current request. | 1 | 11 | ||
RequestContextAwareInterface | interface | Symfony\Component\Routing | vendor/ |
2 | 5 | |||
RequestContextProvider | final class | Symfony\Component\VarDumper\Dumper\ContextProvider | vendor/ |
Tries to provide context from a request. | 1 | |||
RequestDataCollector | class | Symfony\Component\HttpKernel\DataCollector | vendor/ |
@author Fabien Potencier <fabien@symfony.com> | ||||
RequestEvent | class | Symfony\Component\HttpKernel\Event | vendor/ |
Allows to create a response for a request. | 2 | 21 | ||
RequestException | class | GuzzleHttp\Exception | vendor/ |
HTTP Request exception | 2 | 5 | ||
RequestException | class | Http\Client\Exception | vendor/ |
Exception for when a request failed, providing access to the failed request. | 1 | |||
RequestExceptionInterface | interface | Symfony\Component\HttpFoundation\Exception | vendor/ |
Interface for Request exceptions. | 5 | 2 | ||
RequestExceptionInterface | interface | Psr\Http\Client | vendor/ |
Exception for when a request failed. | 2 | 2 | ||
RequestFactoryInterface | interface | Psr\Http\Message | vendor/ |
3 | 13 | |||
RequestFormatCacheContext | class | Drupal\Core\Cache\Context | core/ |
Defines the RequestFormatCacheContext service, for "per format" caching. | ||||
RequestFormatRouteFilter | class | Drupal\Core\Routing | core/ |
Provides a route filter, which filters by the request format. | 1 | 1 | ||
RequestHandler | class | Drupal\rest | core/ |
Acts as intermediate request forwarder for resource plugins. | 1 | |||
RequestHelper | class | Drupal\Core\Routing | core/ |
Provides some helper methods for dealing with the request. | 1 | |||
RequestInterface | interface | Psr\Http\Message | vendor/ |
Representation of an outgoing, client-side request. | 2 | 44 | ||
RequestMatcherInterface | interface | Symfony\Component\HttpFoundation | vendor/ |
RequestMatcherInterface is an interface for strategies to match a Request. | 12 | 12 | ||
RequestMatcherInterface | interface | Symfony\Component\Routing\Matcher | vendor/ |
RequestMatcherInterface is the interface that all request matcher classes must implement. | 4 | 6 | ||
RequestOptions | final class | GuzzleHttp | vendor/ |
This class contains a list of built-in Guzzle request options. | 3 | |||
RequestPath | class | Drupal\system\Plugin\Condition | core/ |
Provides a 'Request Path' condition. | ||||
RequestPayloadValueResolver | class | Symfony\Component\HttpKernel\Controller\ArgumentResolver | vendor/ |
@author Konstantin Myakshin <molodchick@gmail.com> | 3 | |||
RequestPolicyInterface | interface | Drupal\Core\PageCache | core/ |
Defines the interface for request policy implementations. | 5 | 8 | ||
RequestProxy | class | Composer\Util\Http | vendor/ |
@internal @author John Stevenson <john-stevenson@blueyonder.co.uk> | 1 | |||
RequestRateLimiterInterface | interface | Symfony\Component\HttpFoundation\RateLimiter | vendor/ |
A special type of limiter that deals with requests. | 1 | |||
RequestSanitizer | class | Drupal\Core\Security | core/ |
Sanitizes user input. | 1 | |||
RequestStack | class | Symfony\Component\HttpFoundation | vendor/ |
Request stack that controls the lifecycle of requests. | 1 | 92 | ||
RequestStackCacheContextBase | abstract class | Drupal\Core\Cache\Context | core/ |
Defines a base class for cache contexts depending only on the request stack. | 11 | |||
RequestStackGetMainRequestRule | final class | mglaman\PHPStanDrupal\Rules\Drupal | vendor/ |
@implements Rule<Node\Expr\MethodCall> | ||||
RequestValueResolver | final class | Symfony\Component\HttpKernel\Controller\ArgumentResolver | vendor/ |
Yields the same instance as the request object passed along. | 1 | |||
RequeueException | class | Drupal\Core\Queue | core/ |
Throw this exception to release the item allowing it to be processed again. | 1 | |||
RequireAbstractOrFinalSniff | class | SlevomatCodingStandard\Sniffs\Classes | vendor/ |
|||||
RequireArrowFunctionSniff | class | SlevomatCodingStandard\Sniffs\Functions | vendor/ |
|||||
RequireAttributeAfterDocCommentSniff | class | SlevomatCodingStandard\Sniffs\Attributes | vendor/ |
|||||
RequireCombinedAssignmentOperatorSniff | class | SlevomatCodingStandard\Sniffs\Operators | vendor/ |
|||||
RequireCommand | class | Composer\Command | vendor/ |
@author Jérémy Romey <jeremy@free-agent.fr> @author Jordi Boggiano <j.boggiano@seld.be> | ||||
RequireConstructorPropertyPromotionSniff | class | SlevomatCodingStandard\Sniffs\Classes | vendor/ |
|||||
Required | final class | Doctrine\Common\Annotations\Annotation | vendor/ |
Annotation that can be used to signal to the parser to check if that attribute is required during the parsing process. | ||||
Required | final class | Symfony\Contracts\Service\Attribute | vendor/ |
A required dependency. | 4 | |||
Required | class | Symfony\Component\Validator\Constraints | vendor/ |
@author Bernhard Schussek <bschussek@gmail.com> | 1 | |||
RequiredConfigDependenciesConstraint | class | Drupal\Core\Config\Plugin\Validation\Constraint | core/ |
Checks that config dependencies contain specific types of entities. | ||||
RequiredConfigDependenciesConstraintValidator | class | Drupal\Core\Config\Plugin\Validation\Constraint | core/ |
Validates the RequiredConfigDependencies constraint. | ||||
RequiredFieldStorageDefinitionInterface | interface | Drupal\Core\Field | core/ |
Defines an interface for required field storage definitions. | 1 | 1 | ||
RequiredModuleUninstallValidator | class | Drupal\Core\Extension | core/ |
Ensures that required modules cannot be uninstalled. | ||||
RequiredOptionArgumentMissingException | final class | SebastianBergmann\CliParser | vendor/ |
|||||
RequiredSniff | class | Drupal\Sniffs\InfoFiles | vendor/ |
"name", "description" and "core are required fields in Drupal info files. Also checks the "php" minimum requirement for Drupal 7. |