Classes, traits, and interfaces - 10.3.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 1518
| Name | Deprecated | Object type | Namespace | File name | Summary | Direct uses | Use statements | Strings |
|---|---|---|---|---|---|---|---|---|
| RowTest | class | Drupal\views_test_data\Plugin\views\row | core/ |
Provides a general test row plugin. | 1 | |||
| RowTest | class | Drupal\Tests\migrate\Unit | core/ |
@coversDefaultClass \Drupal\migrate\Row[[api-linebreak]] @group migrate | ||||
| RowUITest | class | Drupal\Tests\views_ui\Functional | core/ |
Tests the UI of row plugins. | ||||
| RoyalGala | class | Drupal\Tests\Core\Entity | core/ |
|||||
| 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. | ||||
| Rss | class | Drupal\comment\Plugin\views\row | core/ |
Plugin which formats the comments as RSS items. | ||||
| 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. | 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/ |
@coversDefaultClass \Drupal\Core\EventSubscriber\RssResponseRelativeUrlFilter[[api-linebreak]] @group event_subscriber | ||||
| RssTest | class | Drupal\Tests\taxonomy\Functional | core/ |
Tests the taxonomy RSS display. | ||||
| RunnerVersion | final class | Drupal\TestTools\PhpUnitCompatibility | core/ |
Helper class to determine information about running PHPUnit version. | 2 | |||
| 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 | ||
| SanitizeNameTest | class | Drupal\Tests\file\Unit | core/ |
Filename sanitization tests. | ||||
| 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\pgsql\Driver\Database\pgsql | core/ |
PostgreSQL implementation of \Drupal\Core\Database\Schema. | 1 | 2 | ||
| Schema | class | Drupal\Tests\Core\Database\Stub\Driver | core/ |
A very minimal class for testing purposes. | 1 | |||
| Schema | class | Drupal\core_fake\Driver\Database\CoreFakeWithAllCustomClasses | core/ |
CoreFakeWithAllCustomClasses implementation of \Drupal\Core\Database\Schema. | ||||
| Schema | in drupal:9.4.0 and is removed from drupal:11.0.0. The SQLite database driver has been moved to the sqlite module. |
class | Drupal\Core\Database\Driver\sqlite | core/ |
SQLite implementation of \Drupal\Core\Database\Schema. | 1 | ||
| Schema | in drupal:9.4.0 and is removed from drupal:11.0.0. The MySQL database driver has been moved to the mysql module. |
class | Drupal\Core\Database\Driver\mysql | core/ |
MySQL implementation of \Drupal\Core\Database\Schema. | 1 | ||
| Schema | in drupal:9.4.0 and is removed from drupal:11.0.0. The PostgreSQL database driver has been moved to the pgsql module. |
class | Drupal\Core\Database\Driver\pgsql | core/ |
PostgreSQL implementation of \Drupal\Core\Database\Schema. | 1 | ||
| Schema | abstract class | Drupal\Core\Database | core/ |
Provides a base implementation for Database Schema. | 4 | 6 | ||
| Schema | class | Drupal\sqlite\Driver\Database\sqlite | core/ |
SQLite implementation of \Drupal\Core\Database\Schema. | 1 | 1 | ||
| Schema | class | Drupal\mysql\Driver\Database\mysql | core/ |
MySQL implementation of \Drupal\Core\Database\Schema. | 1 | 1 | ||
| SchemaCheckTestTrait | trait | Drupal\Tests | core/ |
Provides a class for checking configuration schema. | 44 | |||
| SchemaCheckTrait | trait | Drupal\Core\Config\Schema | core/ |
Provides a trait for checking configuration schema. | 4 |
Pagination
- Previous page
- Page 153
- Next page
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.