Classes, traits, and interfaces - main - drupal
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 1529
| Name | Deprecated | Object type | Namespace | File name | Summary | Direct uses | Use statements | Strings |
|---|---|---|---|---|---|---|---|---|
| RemoveCheckToStringNodeVisitor | final class | Drupal\Core\Template | core/ |
Defines a TwigNodeVisitor that replaces CheckToStringNodes. | ||||
| RemoveCommand | class | Drupal\Core\Ajax | core/ |
AJAX command for calling the jQuery remove() method. | 3 | |||
| RemovedPostUpdateNameException | class | Drupal\Core\Update | core/ |
An exception thrown for removed post-update functions. | 1 | |||
| RemoveHook | class | Drupal\Core\Hook\Attribute | core/ |
Removes an already existing implementation. | 10 | |||
| RemovePathKeyTest | class | Drupal\Tests\system\Functional\Update | core/ |
Tests the upgrade path for the system.file schema update. | ||||
| RemoveRoleUser | class | Drupal\user\Plugin\Action | core/ |
Removes a role from a user. | 1 | |||
| RemoveRoleUserTest | class | Drupal\Tests\user\Unit\Plugin\Action | core/ |
Tests Drupal\user\Plugin\Action\RemoveRoleUser. | ||||
| RemoveSectionForm | class | Drupal\layout_builder\Form | core/ |
Provides a form to confirm the removal of a section. | 1 | |||
| RenderableInterface | interface | Drupal\Core\Render | core/ |
Defines an object which can be rendered by the Render API. | 4 | 6 | ||
| RenderArrayNonHtmlSubscriber | class | Drupal\Core\EventSubscriber | core/ |
Throws 406 if requesting non-HTML format and controller returns render array. | 2 | |||
| RenderArrayNonHtmlSubscriberTest | class | Drupal\Tests\system\Functional\Render | core/ |
Functional test verifying that render array throws 406 for non-HTML requests. | ||||
| RenderArrayNonHtmlSubscriberTestController | class | Drupal\render_array_non_html_subscriber_test | core/ |
Controller for testing testing non-HTML requests. | ||||
| RenderAttachedTestController | class | Drupal\render_attached_test\Controller | core/ |
Controller for various permutations of #attached in the render array. | 1 | |||
| RenderCache | class | Drupal\Core\Render | core/ |
Wraps the caching logic for the render caching system. | 1 | 1 | ||
| RenderCacheIntegrationTest | class | Drupal\Tests\views\Kernel | core/ |
Tests the general integration between views and the render cache. | ||||
| RenderCacheInterface | interface | Drupal\Core\Render | core/ |
Defines an interface for caching rendered render arrays. | 1 | 5 | ||
| RenderCacheWebTest | class | Drupal\Tests\views\Functional | core/ |
Tests render caching of blocks provided by views. | ||||
| RenderCallbackInterface | interface | Drupal\Core\Render\Element | core/ |
Indicates all public methods are safe to use in render callbacks. | 2 | 2 | ||
| 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. | 43 | |||
| RenderedEntity | class | Drupal\views\Plugin\views\field | core/ |
Provides a field handler which renders an entity in a certain view mode. | 1 | |||
| RenderedEntityTest | class | Drupal\Tests\views\Unit\Plugin\views\field | core/ |
Tests Drupal\views\Plugin\views\field\RenderedEntity. | ||||
| RenderElement | class | Drupal\Core\Render\Attribute | core/ |
Defines a Render element plugin attribute object. | 1 | 37 | ||
| 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. | 1 | 1 | |
| RenderElement | class | Drupal\Core\Render\Annotation | core/ |
Defines a render element plugin annotation object. | 1 | |||
| RenderElementBase | abstract class | Drupal\Core\Render\Element | core/ |
Provides a base class for render element plugins. | 33 | 16 | ||
| RenderElementHelper | class | Drupal\inline_form_errors | core/ |
Provides functionality to process render elements. | 1 | |||
| RenderElementTest | class | Drupal\Tests\Core\Render\Element | core/ |
Tests Drupal\Core\Render\Element\RenderElementBase. | ||||
| RenderElementTypesTest | class | Drupal\KernelTests\Core\Render\Element | core/ |
Tests the rendered markup of core render element types. | ||||
| Renderer | class | Drupal\Core\Render | core/ |
Turns a render array into an HTML string. | 10 | 2 | ||
| RendererBase | abstract class | Drupal\views\Entity\Render | core/ |
Defines a base class for entity renderers. | 2 | |||
| RendererBubblingTest | class | Drupal\Tests\Core\Render | core/ |
Tests Drupal\Core\Render\Renderer. | ||||
| RendererCallbackTest | class | Drupal\Tests\Core\Render | core/ |
Tests Drupal\Core\Render\Renderer. | ||||
| RendererDebugTest | class | Drupal\Tests\Core\Render | core/ |
Tests Drupal\Core\Render\Renderer. | ||||
| RendererInterface | interface | Drupal\Core\Render | core/ |
Defines an interface for turning a render array into a string. | 1 | 90 | ||
| RendererPlaceholdersTest | class | Drupal\Tests\Core\Render | core/ |
Tests Drupal\Core\Render\Renderer. | ||||
| RendererRecursionTest | class | Drupal\Tests\Core\Render | core/ |
Tests Drupal\Core\Render\Renderer. | ||||
| RendererTest | class | Drupal\Tests\Core\Render | core/ |
Tests Drupal\Core\Render\Renderer. | ||||
| RendererTestBase | abstract class | Drupal\Tests\Core\Render | core/ |
Base class for the actual unit tests testing \Drupal\Core\Render\Renderer. | 8 | 1 | ||
| RenderEvents | final class | Drupal\Core\Render | core/ |
Defines events for the render system. | 3 | |||
| RenderPlaceholderMessageTestController | class | Drupal\render_placeholder_message_test | core/ |
Provides a controller for testing render placeholders and message ordering. | 2 | |||
| RenderTest | class | Drupal\KernelTests\Core\Render | core/ |
Performs functional tests on \Drupal::service('renderer')->render(). | ||||
| RenderWebTest | class | Drupal\Tests\system\Functional\Common | core/ |
Performs integration tests on \Drupal::service('renderer')->render(). | ||||
| ReorderDisplays | class | Drupal\views_ui\Form\Ajax | core/ |
Displays the display reorder form. | ||||
| ReorderHook | class | Drupal\Core\Hook\Attribute | core/ |
Sets the order of an already existing implementation. | 11 | |||
| ReplaceCommand | class | Drupal\Core\Ajax | core/ |
AJAX command for calling the jQuery replace() method. | 14 | |||
| ReplaceOp | class | Drupal\Composer\Plugin\Scaffold\Operations | composer/ |
Scaffold operation to copy or symlink from source to destination. | 2 | |||
| ReplaceOpTest | class | Drupal\Tests\Composer\Plugin\Scaffold\Integration | core/ |
Tests Drupal\Composer\Plugin\Scaffold\Operations\ReplaceOp. | ||||
| ReplaceTitleCommand | class | Drupal\views\Ajax | core/ |
Provides an AJAX command for replacing the page title. | 1 |
Pagination
- Previous page
- Page 161
- Next page
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.