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 |
|---|---|---|---|---|---|---|---|---|
| RouterTest | class | Drupal\Tests\system\Functional\Routing | core/ |
Functional class for the full integrated routing system. | ||||
| RouterTest | class | Drupal\KernelTests\Core\Routing | core/ |
Tests the router. | ||||
| RouterTest | class | Drupal\Tests\Core\Routing | core/ |
Tests Drupal\Core\Routing\Router. | ||||
| RouterTestEarlyExceptionSubscriber | class | Drupal\router_test | core/ |
Event subscribers for exceptions thrown in early kernel middleware. | ||||
| RouterTestServiceProvider | class | Drupal\router_test | core/ |
Registers a dynamic route provider. | ||||
| RouterTestThemeHooks | class | Drupal\router_test\Hook | core/ |
Hook implementations for router_test. | ||||
| RouterUnsupportedTest | class | Drupal\Tests\Core\Routing | core/ |
Tests Drupal\Core\Routing\Router. | ||||
| Routes | class | Drupal\jsonapi\Routing | core/ |
Defines dynamic routes. | 10 | |||
| Routes | class | Drupal\menu_link_content_dynamic_route | core/ |
Provides dynamic routes for test purposes. | ||||
| RoutesTest | class | Drupal\Tests\jsonapi\Unit\Routing | core/ |
Tests Drupal\jsonapi\Routing\Routes. | ||||
| RouteSubscriber | class | Drupal\config_translation\Routing | core/ |
Listens to the dynamic route events. | 2 | |||
| RouteSubscriber | class | Drupal\media_library\Routing | core/ |
Subscriber for media library routes. | 2 | |||
| RouteSubscriber | class | Drupal\node\Routing | core/ |
Listens to the dynamic route events. | 2 | |||
| RouteSubscriber | class | Drupal\media_test_embed\Routing | core/ |
Listens to the dynamic route events. | 2 | |||
| RouteSubscriber | class | Drupal\user_route_alter_test\Routing | core/ |
Alter the 'user.pass.http' route. | ||||
| RouteSubscriber | class | Drupal\views\EventSubscriber | core/ |
Builds up the routes of all views. | 1 | 1 | 2 | |
| RouteSubscriber | class | Drupal\field_ui\Routing | core/ |
Subscriber for Field UI routes. | 2 | |||
| RouteSubscriber | class | Drupal\block_content\Routing | core/ |
Subscriber for Block content BC routes. | 2 | |||
| RouteSubscriberBase | abstract class | Drupal\Core\Routing | core/ |
Provides a base implementation for RouteSubscriber. | 17 | 17 | ||
| RouteSubscriberTest | class | Drupal\Tests\views\Unit\EventSubscriber | core/ |
Tests Drupal\views\EventSubscriber\RouteSubscriber. | ||||
| RouteTest | class | Drupal\Tests\migrate\Kernel\process | core/ |
Tests the route process plugin. | ||||
| RouteTestSubscriber | class | Drupal\router_test | core/ |
Listens to the dynamic route event and add a test route. | ||||
| RoutingEvents | final class | Drupal\Core\Routing | core/ |
Contains all events thrown in the core routing component. | 27 | |||
| RoutingFixtures | class | Drupal\Tests\Core\Routing | core/ |
Utility methods to generate sample data, database configuration, etc. | 2 | |||
| Row | class | Drupal\migrate | core/ |
Stores a row. | 231 | |||
| RowCountException | class | Drupal\Core\Database | core/ |
Exception thrown if a SELECT query trying to execute rowCount() on result. | 4 | |||
| RowCountExceptionTest | class | Drupal\Tests\Core\Database | core/ |
Tests Drupal\Core\Database\RowCountException. | ||||
| RowEntityRenderersTest | class | Drupal\Tests\views\Kernel\Entity | core/ |
Tests the entity row renderers. | ||||
| RowEntityTest | class | Drupal\Tests\views\Kernel\Plugin | core/ |
Tests the generic entity row plugin. | ||||
| RowPluginBase | abstract class | Drupal\views\Plugin\views\row | core/ |
Base class for Views row plugins. | 9 | 5 | ||
| RowPluginTest | class | Drupal\Tests\node\Kernel\Views | core/ |
Tests the node row plugin. | ||||
| RowRssTest | class | Drupal\Tests\comment\Functional\Views | core/ |
Tests the comment rss row plugin. | ||||
| RowTest | class | Drupal\views_test_data\Plugin\views\row | core/ |
Provides a general test row plugin. | 1 | |||
| RowTest | class | Drupal\Tests\migrate\Unit | core/ |
Tests Drupal\migrate\Row. | ||||
| RowTest | class | Drupal\Tests\migrate\Kernel | core/ |
Tests the Row class. | ||||
| RowUITest | class | Drupal\Tests\views_ui\Functional | core/ |
Tests the UI of row plugins. | ||||
| RoyalGala | class | Drupal\Tests\Core\Entity | core/ |
An Apple class for testing. | ||||
| Rss | class | Drupal\comment\Plugin\views\row | core/ |
Plugin which formats the comments as RSS items. | ||||
| Rss | class | Drupal\views\Plugin\views\style | core/ |
Default style plugin to render an RSS feed. | ||||
| Rss | class | Drupal\node\Plugin\views\row | core/ |
Performs a node_view on the resulting object and formats it as an RSS item. | ||||
| RssDefaultRowViewModeUpdateTest | class | Drupal\Tests\views\Functional\Update | core/ |
Tests the update view mode when removing system.rss. | ||||
| RSSEnclosureFormatter | class | Drupal\file\Plugin\Field\FieldFormatter | core/ |
Plugin implementation of the 'file_rss_enclosure' formatter. | ||||
| RssFields | class | Drupal\views\Plugin\views\row | core/ |
Renders an RSS item based on fields. | ||||
| RssFieldsTest | class | Drupal\Tests\views\Kernel\Plugin | core/ |
Tests \Drupal\views\Plugin\views\row\RssFields. | ||||
| RssPluginBase | abstract class | Drupal\views\Plugin\views\row | core/ |
Base class for Views RSS row plugins. | 2 | 2 | ||
| RssResponseRelativeUrlFilter | class | Drupal\Core\EventSubscriber | core/ |
Subscribes to filter RSS responses, to make relative URIs absolute. | 1 | 2 | ||
| RssResponseRelativeUrlFilterTest | class | Drupal\Tests\Core\EventSubscriber | core/ |
Tests Drupal\Core\EventSubscriber\RssResponseRelativeUrlFilter. | ||||
| RssTest | class | Drupal\Tests\taxonomy\Functional | core/ |
Tests the taxonomy RSS display. | ||||
| RssTest | class | Drupal\Tests\taxonomy\Kernel | core/ |
Tests the taxonomy RSS display. | ||||
| RsyncValidator | final class | Drupal\package_manager\Validator | core/ |
Checks that rsync is available. | 1 |
Pagination
- Previous page
- Page 170
- Next page
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.