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 |
---|---|---|---|---|---|---|---|---|
ResponseIsUnprocessable | final class | Symfony\Component\HttpFoundation\Test\Constraint | vendor/ |
|||||
ResponseKeepSessionOpenInterface | interface | Drupal\Core\Session | core/ |
Indicates that sessions for this response should be kept open after sending. | 1 | 2 | ||
ResponseListener | class | Symfony\Component\HttpKernel\EventListener | vendor/ |
ResponseListener fixes the Response headers based on the Request. | ||||
ResponsePolicyInterface | interface | Drupal\Core\PageCache | core/ |
Defines the interface for response policy implementations. | 7 | 9 | ||
ResponseStatus | class | Drupal\system\Plugin\Condition | core/ |
Provides a 'Response status' condition. | ||||
ResponseStatusCodeSame | final class | Symfony\Component\HttpFoundation\Test\Constraint | vendor/ |
|||||
ResponseTextException | class | Behat\Mink\Exception | vendor/ |
Exception thrown when an expectation on the response text fails. | 1 | |||
ResponsiveImage | class | Drupal\responsive_image\Element | core/ |
Provides a responsive image element. | ||||
ResponsiveImageFormatter | class | Drupal\responsive_image\Plugin\Field\FieldFormatter | core/ |
Plugin for responsive image formatter. | ||||
ResponsiveImageHooks | class | Drupal\responsive_image\Hook | core/ |
Hook implementations for responsive_image. | ||||
ResponsiveImageStyle | class | Drupal\responsive_image\Entity | core/ |
Defines the responsive image style entity. | 2 | |||
ResponsiveImageStyleForm | class | Drupal\responsive_image | core/ |
Form controller for the responsive image edit/add forms. | 1 | |||
ResponsiveImageStyleInterface | interface | Drupal\responsive_image | core/ |
Provides an interface defining a responsive_image mapping entity. | 1 | 2 | ||
ResponsiveImageStyleListBuilder | class | Drupal\responsive_image | core/ |
Provides a listing of responsive image styles. | 1 | |||
ResponsiveImageStyles | class | Drupal\responsive_image\Plugin\migrate\source\d7 | core/ |
Gets Drupal responsive image styles source from database. | ||||
RestElement | class | Peast\Syntax\Node | vendor/ |
A node that represents the rest element in array binding patterns or function parameters. For example "...rest" in: [a, ...rest] = b | ||||
RestExport | class | Drupal\rest\Plugin\views\display | core/ |
The plugin that handles Data response callbacks for REST resources. | ||||
RestHooks | class | Drupal\rest\Hook | core/ |
Hook implementations for rest. | ||||
Restorer | final class | SebastianBergmann\GlobalState | vendor/ |
1 | ||||
RestPermissions | class | Drupal\rest | core/ |
Provides rest module permissions. | ||||
RestResource | class | Drupal\rest\Attribute | core/ |
Defines a REST resource attribute object. | 5 | |||
RestResource | class | Drupal\rest\Annotation | core/ |
Defines a REST resource annotation object. | ||||
RestResourceConfig | class | Drupal\rest\Entity | core/ |
Defines a RestResourceConfig configuration entity class. | ||||
RestResourceConfigInterface | interface | Drupal\rest | core/ |
Defines a configuration entity to store enabled REST resources. | 1 | 3 | ||
RestripeCommand | class | Drupal\Core\Ajax | core/ |
AJAX command for resetting the striping on a table. | ||||
ReStructuredTextDescriptor | class | Symfony\Component\Console\Descriptor | vendor/ |
1 | ||||
Result | interface | Egulias\EmailValidator\Result | vendor/ |
2 | 15 | |||
Result | final class | PHPUnit\TextUI\Command | vendor/ |
@psalm-immutable | 1 | |||
Result | class | Drupal\views\Plugin\views\area | core/ |
Views area handler to display some configurable result summary. | ||||
ResultCache | interface | PHPUnit\Runner\ResultCache | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | 2 | 3 | ||
ResultCacheHandler | final class | PHPUnit\Runner\ResultCache | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | 1 | |||
ResultPrinter | final class | PHPUnit\TextUI\Output\Default | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | 1 | |||
ResultPrinter | final class | PHPUnit\TextUI\Output\TestDox | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | 1 | |||
ResultRow | class | Drupal\views | core/ |
A class representing a view result row. | 58 | |||
RetryMiddleware | class | GuzzleHttp | vendor/ |
Middleware that retries requests based on the boolean result of invoking the provided "decider" function. | ||||
ReturnArgument | final class | PHPUnit\Framework\MockObject\Stub | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | 3 | |||
ReturnArgumentPromise | class | Prophecy\Promise | vendor/ |
Returns nth argument if has one, null otherwise. | ||||
ReturnByReferenceException | class | Prophecy\Exception\Doubler | vendor/ |
|||||
ReturnCallback | final class | PHPUnit\Framework\MockObject\Stub | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | 3 | |||
ReturnFactory | final class | phpDocumentor\Reflection\DocBlock\Tags\Factory | vendor/ |
@internal This class is not part of the BC promise of this library. | 1 | |||
ReturnFunctionValueSniff | class | PHP_CodeSniffer\Standards\MySource\Sniffs\PHP | vendor/ |
|||||
ReturnPromise | class | Prophecy\Promise | vendor/ |
Returns saved values one by one until last one, then continuously returns last value. | ||||
ReturnReference | final class | PHPUnit\Framework\MockObject\Stub | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | 1 | |||
ReturnSelf | final class | PHPUnit\Framework\MockObject\Stub | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | 3 | |||
ReturnStatement | class | Peast\Syntax\Node | vendor/ |
A node that represents the return statement inside functions. For example: return a + 1 | ||||
ReturnStub | final class | PHPUnit\Framework\MockObject\Stub | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | 3 | |||
ReturnTagValueNode | class | PHPStan\PhpDocParser\Ast\PhpDoc | vendor/ |
6 | ||||
ReturnTypeDeclarationSniff | class | PHP_CodeSniffer\Standards\PSR12\Sniffs\Functions | vendor/ |
|||||
ReturnTypeHintSniff | class | SlevomatCodingStandard\Sniffs\TypeHints | vendor/ |
|||||
ReturnTypeHintSpacingSniff | class | SlevomatCodingStandard\Sniffs\TypeHints | vendor/ |