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 |
|---|---|---|---|---|---|---|---|---|
| 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. | 26 | |||
| 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\node\Plugin\views\row | core/ |
Performs a node_view on the resulting object and formats it as an RSS item. | ||||
| 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. | ||||
| 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. | ||||
| RsyncValidator | final class | Drupal\package_manager\Validator | core/ |
Checks that rsync is available. | 1 | |||
| RsyncValidatorTest | class | Drupal\Tests\package_manager\Kernel | core/ |
Tests Rsync Validator. | ||||
| RunnerVersion | final class | Drupal\TestTools\PhpUnitCompatibility | core/ |
Helper class to determine information about running PHPUnit version. | 1 | |||
| RunTimeRequirementsTest | class | Drupal\Tests\system\Kernel\System | core/ |
Tests the effectiveness of hook_runtime_requirements(). | ||||
| SafeMarkupTestMarkup | class | Drupal\KernelTests\Core\Theme | core/ |
Implements MarkupInterface without implementing \Countable. | ||||
| SameModuleChild | class | Drupal\Tests\TestTools\ErrorHandler | core/ |
Fixture: child in the same module as the parent. | ||||
| SampleEntityGeneratorInterface | interface | Drupal\layout_builder\Entity | core/ |
Generates a sample entity. | 1 | 2 | ||
| SandboxDatabaseUpdatesValidator | class | Drupal\package_manager\Validator | core/ |
Flags a warning if there are database updates in a staged update. | 1 | 3 | ||
| SandboxDirectoryValidator | final class | Drupal\package_manager\Validator | core/ |
Validates staging root is not a subdirectory of active. | 1 | |||
| SandboxDirectoryValidatorTest | class | Drupal\Tests\package_manager\Unit | core/ |
Tests Drupal\package_manager\Validator\SandboxDirectoryValidator. | ||||
| SandboxEvent | abstract class | Drupal\package_manager\Event | core/ |
Base class for all events related to the life cycle of the stage. | 5 | 8 | ||
| SandboxEventException | class | Drupal\package_manager\Exception | core/ |
Exception thrown if an error related to an event occurs. | 12 | |||
| SandboxException | class | Drupal\package_manager\Exception | core/ |
Base class for all exceptions related to stage operations. | 3 | 6 | ||
| SandboxManagerBase | abstract class | Drupal\package_manager | core/ |
Creates and manages a stage directory in which to install or update code. | 3 | 18 | ||
| SandboxManagerBaseTest | class | Drupal\Tests\package_manager\Unit | core/ |
Tests Drupal\package_manager\SandboxManagerBase. | ||||
| SandboxManagerBaseTest | class | Drupal\Tests\package_manager\Kernel | core/ |
Tests Drupal\package_manager\SandboxManagerBase. |
Pagination
- Previous page
- Page 168
- Next page
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.