Classes, traits, and interfaces - 9.5.x - 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 1523
| Name | Deprecated | Object type | Namespace | File name | Summary | Direct uses | Use statements | Strings |
|---|---|---|---|---|---|---|---|---|
| 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. | 228 | |||
| RowCountException | class | Drupal\Core\Database | core/ |
Exception thrown if a SELECT query trying to execute rowCount() on result. | 3 | |||
| RowCountExceptionTest | class | Drupal\Tests\Core\Database | core/ |
@coversDefaultClass \Drupal\Core\Database\RowCountException[[api-linebreak]] | ||||
| 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\Functional\Views | core/ |
Tests the node row plugin. | ||||
| RowRenderCacheTest | class | Drupal\Tests\views\Kernel\Plugin | core/ |
Tests row render caching. | ||||
| RowRssTest | class | Drupal\Tests\comment\Functional\Views | core/ |
Tests the comment rss row plugin. | ||||
| RowTest | class | Drupal\Tests\migrate\Unit | core/ |
@coversDefaultClass \Drupal\migrate\Row[[api-linebreak]] @group migrate | ||||
| RowTest | class | Drupal\views_test_data\Plugin\views\row | core/ |
Provides a general test row plugin. | 1 | |||
| RowUITest | class | Drupal\Tests\views_ui\Functional | core/ |
Tests the UI of row plugins. | ||||
| Rss | class | Drupal\comment\Plugin\views\row | core/ |
Plugin which formats the comments as RSS items. | ||||
| Rss | class | Drupal\aggregator\Plugin\views\row | core/ |
Defines a row plugin which loads an aggregator item and renders as RSS. | ||||
| 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. | ||||
| RSSEnclosureFormatter | class | Drupal\file\Plugin\Field\FieldFormatter | core/ |
Plugin implementation of the 'file_rss_enclosure' formatter. | ||||
| RssFeedsForm | class | Drupal\system\Form | core/ |
Configure RSS settings for this site. | 1 | |||
| 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. | 3 | 3 | ||
| 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/ |
@coversDefaultClass \Drupal\Core\EventSubscriber\RssResponseRelativeUrlFilter[[api-linebreak]] @group event_subscriber | ||||
| RssTest | class | Drupal\Tests\taxonomy\Functional | core/ |
Tests the taxonomy RSS display. | ||||
| RssViewIntegrationTest | class | Drupal\Tests\rdf\Functional | core/ |
@group rdf @group legacy | ||||
| RunnerVersion | final class | Drupal\TestTools\PhpUnitCompatibility | core/ |
Helper class to determine information about running PHPUnit version. | 4 | |||
| SafeMarkupTestMarkup | class | Drupal\KernelTests\Core\Theme | core/ |
Implements MarkupInterface without implementing \Countable. | ||||
| SampleEntityGeneratorInterface | interface | Drupal\layout_builder\Entity | core/ |
Generates a sample entity. | 1 | 2 | ||
| SaveAction | class | Drupal\Core\Action\Plugin\Action | core/ |
Provides an action that can save any entity. | ||||
| SaveActionTest | class | Drupal\KernelTests\Core\Action | core/ |
@group Action | ||||
| SaveEntity | class | Drupal\action_test\Plugin\Action | core/ |
Provides an operation to save user entities. | ||||
| SaveTest | class | Drupal\Tests\file\Kernel | core/ |
File saving tests. | ||||
| SaveUploadFormTest | class | Drupal\Tests\file\Functional | core/ |
Tests the _file_save_upload_from_form() function. | ||||
| SaveUploadTest | class | Drupal\Tests\file\Functional | core/ |
Tests the file_save_upload() function. | 1 | |||
| ScaffoldFileCollection | class | Drupal\Composer\Plugin\Scaffold\Operations | composer/ |
Collection of scaffold files. | 2 | |||
| ScaffoldFileCollectionTest | class | Drupal\Tests\Composer\Plugin\Scaffold\Integration | core/ |
@coversDefaultClass \Drupal\Composer\Plugin\Scaffold\Operations\ScaffoldFileCollection[[api-linebreak]] | ||||
| ScaffoldFileInfo | class | Drupal\Composer\Plugin\Scaffold | composer/ |
Data object that keeps track of one scaffold file. | 1 | |||
| ScaffoldFilePath | class | Drupal\Composer\Plugin\Scaffold | composer/ |
Manage the path to a file to scaffold. | 9 | |||
| ScaffoldOptions | class | Drupal\Composer\Plugin\Scaffold | composer/ |
Per-project options from the 'extras' section of the composer.json file. | 8 | |||
| ScaffoldResult | class | Drupal\Composer\Plugin\Scaffold\Operations | composer/ |
Record the result of a scaffold operation. | 1 | |||
| ScaffoldTest | class | Drupal\Tests\Composer\Plugin\Scaffold\Functional | core/ |
Tests Composer Scaffold. | ||||
| ScaffoldTestResult | class | Drupal\Tests\Composer\Plugin\Scaffold | core/ |
Holds result of a scaffold test. | 1 | |||
| ScaffoldUpgradeTest | class | Drupal\Tests\Composer\Plugin\Scaffold\Functional | core/ |
Tests Upgrading the Composer Scaffold plugin. | ||||
| Scale | class | Drupal\system\Plugin\ImageToolkit\Operation\gd | core/ |
Defines GD2 Scale operation. | ||||
| ScaleAndCrop | class | Drupal\system\Plugin\ImageToolkit\Operation\gd | core/ |
Defines GD2 Scale and crop operation. | ||||
| ScaleAndCropImageEffect | class | Drupal\image\Plugin\ImageEffect | core/ |
Scales and crops an image resource. | ||||
| ScaleImageEffect | class | Drupal\image\Plugin\ImageEffect | core/ |
Scales an image resource. | ||||
| ScanDirectoryTest | class | Drupal\KernelTests\Core\File | core/ |
Tests \Drupal\Core\File\FileSystem::scanDirectory. | 1 | |||
| Schema | class | Drupal\Tests\Core\Database\Stub\Driver | core/ |
A very minimal class for testing purposes. |
Pagination
- Previous page
- Page 145
- Next page
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.