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 |
---|---|---|---|---|---|---|---|---|
RemoveUnusedDefinitionsPass | class | Symfony\Component\DependencyInjection\Compiler | vendor/ |
Removes unused service definitions from the container. | 1 | |||
RemoveVerboseAttribute | final class | PHPUnit\TextUI\XmlConfiguration | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | ||||
RenameBackupStaticAttributesAttribute | final class | PHPUnit\TextUI\XmlConfiguration | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | ||||
RenameBeStrictAboutCoversAnnotationAttribute | final class | PHPUnit\TextUI\XmlConfiguration | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | ||||
RenameForceCoversAnnotationAttribute | final class | PHPUnit\TextUI\XmlConfiguration | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | ||||
RenderableInterface | interface | Drupal\Core\Render | core/ |
Defines an object which can be rendered by the Render API. | 3 | 4 | ||
RenderArrayNonHtmlSubscriber | class | Drupal\Core\EventSubscriber | core/ |
Throws 406 if requesting non-HTML format and controller returns render array. | ||||
RenderCache | class | Drupal\Core\Render | core/ |
Wraps the caching logic for the render caching system. | 1 | |||
RenderCacheInterface | interface | Drupal\Core\Render | core/ |
Defines an interface for caching rendered render arrays. | 1 | 1 | ||
RenderCallbackInterface | interface | Drupal\Core\Render\Element | core/ |
Indicates all public methods are safe to use in render callbacks. | 2 | 3 | ||
RenderCallbackRule | final class | mglaman\PHPStanDrupal\Rules\Drupal | vendor/ |
@implements Rule<Node\Expr\ArrayItem> | ||||
RenderCallbacks | final class | Drupal\navigation | core/ |
Defines a class for render element callbacks. | 1 | |||
RenderCallbacks | final class | Drupal\announcements_feed | core/ |
Defines a class for render callbacks. | 1 | |||
RenderContext | class | Drupal\Core\Render | core/ |
The render context: a stack containing bubbleable rendering metadata. | 11 | |||
RenderedEntity | class | Drupal\views\Plugin\views\field | core/ |
Provides a field handler which renders an entity in a certain view mode. | ||||
RenderElement | in drupal:10.3.0 and is removed from drupal:12.0.0. Use \Drupal\Core\Render\Element\RenderElementBase instead. |
abstract class | Drupal\Core\Render\Element | core/ |
Provides a base class for render element plugins. | |||
RenderElement | class | Drupal\Core\Render\Annotation | core/ |
Defines a render element plugin annotation object. | 1 | |||
RenderElement | class | Drupal\Core\Render\Attribute | core/ |
Defines a Render element plugin attribute object. | 1 | 36 | ||
RenderElementBase | abstract class | Drupal\Core\Render\Element | core/ |
Provides a base class for render element plugins. | 32 | 14 | ||
RenderElementHelper | class | Drupal\inline_form_errors | core/ |
Provides functionality to process render elements. | 1 | |||
Renderer | class | Drupal\Core\Render | core/ |
Turns a render array into an HTML string. | 1 | |||
Renderer | abstract class | SebastianBergmann\CodeCoverage\Report\Html | vendor/ |
@internal This class is not covered by the backward compatibility promise for phpunit/php-code-coverage | 3 | |||
Renderer | class | Peast | vendor/ |
Nodes renderer class | 1 | |||
RendererBase | abstract class | Drupal\views\Entity\Render | core/ |
Defines a base class for entity renderers. | 2 | |||
RendererInterface | interface | Drupal\Core\Render | core/ |
Defines an interface for turning a render array into a string. | 1 | 53 | ||
RenderEvents | final class | Drupal\Core\Render | core/ |
Defines events for the render system. | 2 | |||
Reorderable | interface | PHPUnit\Framework | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | 3 | 2 | ||
ReorderDisplays | class | Drupal\views_ui\Form\Ajax | core/ |
Displays the display reorder form. | ||||
RepeatedField | class | Google\Protobuf\Internal | vendor/ |
RepeatedField is used by generated protocol message classes to manipulate repeated fields. It can be used like native PHP array. | 116 | |||
RepeatedFieldIter | class | Google\Protobuf\Internal | vendor/ |
RepeatedFieldIter is used to iterate RepeatedField. It is also need for the foreach syntax. | ||||
ReplaceAliasByActualDefinitionPass | class | Symfony\Component\DependencyInjection\Compiler | vendor/ |
Replaces aliases with actual service definitions, effectively removing these aliases. | 1 | |||
ReplaceCommand | class | Drupal\Core\Ajax | core/ |
AJAX command for calling the jQuery replace() method. | 11 | |||
ReplaceFilter | class | DeepCopy\Filter | vendor/ |
@final | ||||
ReplaceFilter | class | DeepCopy\TypeFilter | vendor/ |
@final | ||||
ReplaceOp | class | Drupal\Composer\Plugin\Scaffold\Operations | composer/ |
Scaffold operation to copy or symlink from source to destination. | ||||
ReplaceResult | final class | Composer\Pcre | vendor/ |
|||||
ReplaceTitleCommand | class | Drupal\views\Ajax | core/ |
Provides an AJAX command for replacing the page title. | 1 | |||
ReplicaKillSwitch | class | Drupal\Core\Database | core/ |
Provides replica server kill switch to ignore it. | 1 | |||
Report | interface | PHP_CodeSniffer\Reports | vendor/ |
17 | 2 | |||
Report | final class | SebastianBergmann\CodeCoverage\Report\Xml | vendor/ |
@internal This class is not covered by the backward compatibility promise for phpunit/php-code-coverage | ||||
ReportAlreadyFinalizedException | final class | SebastianBergmann\CodeCoverage | vendor/ |
1 | ||||
Reporter | class | PHP_CodeSniffer | vendor/ |
|||||
RepositoryFactory | class | Composer\Repository | vendor/ |
@author Jordi Boggiano <j.boggiano@seld.be> | 9 | |||
RepositoryInterface | interface | Composer\Repository | vendor/ |
Repository interface. | 4 | 14 | ||
RepositoryManager | class | Composer\Repository | vendor/ |
Repositories manager. | 4 | |||
RepositorySecurityException | class | Composer\Repository | vendor/ |
Thrown when a security problem, like a broken or missing signature | ||||
RepositorySet | class | Composer\Repository | vendor/ |
@author Nils Adermann <naderman@naderman.de> | 16 | |||
RepositoryUtils | class | Composer\Repository | vendor/ |
@author Jordi Boggiano <j.boggiano@seld.be> | 4 | |||
Request | class | Symfony\Component\HttpFoundation | vendor/ |
Request represents an HTTP request. | 1 | 320 | ||
Request | class | GuzzleHttp\Psr7 | vendor/ |
PSR-7 request implementation. | 1 | 1 |