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 |
|---|---|---|---|---|---|---|---|---|
| SitePathFactory | class | Drupal\Core | core/ |
Gets the site path from the kernel. | 2 | |||
| SitesDirectoryHardeningTest | class | Drupal\Tests\system\Functional\System | core/ |
Tests Drupal permissions hardening of /sites subdirectories. | ||||
| SiteSettingsForm | class | Drupal\Core\Installer\Form | core/ |
Provides a form to configure and rewrite settings.php. | 1 | |||
| SizeTest | class | Drupal\KernelTests\Core\Common | core/ |
Tests format_size(). | ||||
| SkipOnEmpty | class | Drupal\migrate\Plugin\migrate\process | core/ |
Skips processing the current row when the input value is empty. | 1 | |||
| SkipOnEmptyTest | class | Drupal\Tests\migrate\Unit\process | core/ |
Tests the skip on empty process plugin. | ||||
| SkipOp | class | Drupal\Composer\Plugin\Scaffold\Operations | composer/ |
Scaffold operation to skip a scaffold file (do nothing). | 2 | |||
| SkipOpTest | class | Drupal\Tests\Composer\Plugin\Scaffold\Integration | core/ |
@coversDefaultClass \Drupal\Composer\Plugin\Scaffold\Operations\SkipOp[[api-linebreak]] | ||||
| SkippedDeprecationTest | class | Drupal\Tests | core/ |
@group Test | ||||
| SkipRowIfNotSet | class | Drupal\migrate\Plugin\migrate\process | core/ |
Skips processing the current row when a source value is not set. | 1 | |||
| SkipRowIfNotSetTest | class | Drupal\Tests\migrate\Unit\process | core/ |
Tests the skip row if not set process plugin. | ||||
| SmartDefaultSettings | final class | Drupal\ckeditor5 | core/ |
Generates CKEditor 5 settings for existing text editors/formats. | 2 | 2 | ||
| SmartDefaultSettingsTest | class | Drupal\Tests\ckeditor5\Unit | core/ |
@coversDefaultClass \Drupal\ckeditor5\SmartDefaultSettings[[api-linebreak]] @group ckeditor5 | ||||
| SmartDefaultSettingsTest | class | Drupal\Tests\ckeditor5\Kernel | core/ |
@covers \Drupal\ckeditor5\SmartDefaultSettings::computeSmartDefaultSettings()[[api-linebreak]] @group ckeditor5 @internal | ||||
| SneakySuperset | class | Drupal\ckeditor5_plugin_elements_subset\Plugin\CKEditor5Plugin | core/ |
1 | ||||
| Some | class | Drupal\views\Plugin\views\pager | core/ |
Plugin for views without pagers. | ||||
| SomeAnnotationClassNameWithoutConstructor | class | Drupal\Tests\Component\Annotation\Doctrine | core/ |
|||||
| SomeAnnotationClassNameWithoutConstructorAndProperties | class | Drupal\Tests\Component\Annotation\Doctrine | core/ |
|||||
| SomeAnnotationWithConstructorWithoutParams | class | Drupal\Tests\Component\Annotation\Doctrine | core/ |
|||||
| SomeClass | class | Drupal\module_autoload_test | core/ |
3 | ||||
| Sort | class | Drupal\jsonapi\Query | core/ |
Gathers information about the sort parameter. | 2 | |||
| SortableTestTrait | trait | Drupal\FunctionalJavascriptTests | core/ |
Provides functions for simulating sort changes. | 3 | |||
| SortArray | class | Drupal\Component\Utility | core/ |
Provides generic array sorting helper methods. | 6 | |||
| SortArrayTest | class | Drupal\Tests\Component\Utility | core/ |
Tests the SortArray component. | ||||
| SortDateTest | class | Drupal\Tests\views\Kernel\Handler | core/ |
Tests for core Drupal\views\Plugin\views\sort\Date handler. | ||||
| SortDateTimeTest | class | Drupal\Tests\datetime\Kernel\Views | core/ |
Tests for core Drupal\datetime\Plugin\views\sort\Date handler. | ||||
| SortingTest | class | Drupal\Tests\views\Functional\Wizard | core/ |
Tests the ability of the views wizard to create views with sorts. | ||||
| SortPluginBase | abstract class | Drupal\views\Plugin\views\sort | core/ |
Base sort handler that has no options and performs a simple sort. | 9 | 4 | ||
| SortRandomTest | class | Drupal\Tests\views\Kernel\Handler | core/ |
Tests for core Drupal\views\Plugin\views\sort\Random handler. | ||||
| SortTest | class | Drupal\Tests\views\Kernel\Handler | core/ |
Tests for core Drupal\views\Plugin\views\sort\SortPluginBase handler. | ||||
| SortTest | class | Drupal\Tests\jsonapi\Unit\Query | core/ |
@coversDefaultClass \Drupal\jsonapi\Query\Sort[[api-linebreak]] @group jsonapi | ||||
| SortTest | class | Drupal\Tests\PhpCs | core/ |
Tests that phpcs.xml.dist is properly sorted. | ||||
| SortTranslationTest | class | Drupal\Tests\views\Kernel\Handler | core/ |
Tests sorting on translatable and not translatable fields. | ||||
| SourceEditing | class | Drupal\ckeditor5\Plugin\CKEditor5Plugin | core/ |
CKEditor 5 Source Editing plugin configuration. | 1 | 1 | ||
| SourceEditingPluginTest | class | Drupal\Tests\ckeditor5\Unit | core/ |
@coversDefaultClass \Drupal\ckeditor5\Plugin\CKEditor5Plugin\SourceEditing[[api-linebreak]] @group ckeditor5 @internal | ||||
| SourceEditingPreventSelfXssConstraint | class | Drupal\ckeditor5\Plugin\Validation\Constraint | core/ |
For disallowing Source Editing configuration that allows self-XSS. | ||||
| SourceEditingPreventSelfXssConstraintValidator | class | Drupal\ckeditor5\Plugin\Validation\Constraint | core/ |
Ensures Source Editing cannot be configured to allow self-XSS. | ||||
| SourceEditingRedundantTagsConstraint | class | Drupal\ckeditor5\Plugin\Validation\Constraint | core/ |
For disallowing Source Editing elements already supported by a plugin. | ||||
| SourceEditingRedundantTagsConstraintValidator | class | Drupal\ckeditor5\Plugin\Validation\Constraint | core/ |
Ensures tags already available via plugin are not be added to Source Editing. | ||||
| SourceEditingTest | class | Drupal\Tests\ckeditor5\FunctionalJavascript | core/ |
@coversDefaultClass \Drupal\ckeditor5\Plugin\CKEditor5Plugin\SourceEditing[[api-linebreak]] @covers \Drupal\ckeditor5\Plugin\CKEditor5PluginManager::getCKEditor5PluginConfig()[[api-linebreak]] @group ckeditor5 @internal | ||||
| SourcePluginBase | abstract class | Drupal\migrate\Plugin\migrate\source | core/ |
The base class for source plugins. | 6 | 6 | ||
| SourceProviderTest | class | Drupal\Tests\migrate_drupal_ui\Functional | core/ |
Tests that a missing source provider error message is displayed. | ||||
| SourceString | class | Drupal\locale | core/ |
Defines the locale source string object. | 3 | |||
| SpaceUsedTest | class | Drupal\Tests\file\Kernel | core/ |
Tests the spaceUsed() function. | ||||
| SpecialAttributesRouteSubscriber | class | Drupal\Core\EventSubscriber | core/ |
Provides a route subscriber which checks for invalid pattern variables. | 1 | 2 | ||
| SpecialAttributesRouteSubscriberTest | class | Drupal\Tests\Core\EventSubscriber | core/ |
@coversDefaultClass \Drupal\Core\EventSubscriber\SpecialAttributesRouteSubscriber[[api-linebreak]] @group EventSubscriber | ||||
| Sql | class | Drupal\views\Plugin\views\query | core/ |
Views query plugin for an SQL query. | 4 | |||
| Sql | class | Drupal\migrate\Plugin\migrate\id_map | core/ |
Defines the sql based ID map implementation. | 1 | 4 | ||
| SqlBase | abstract class | Drupal\migrate\Plugin\migrate\source | core/ |
Sources whose data may be fetched via a database connection. | 7 | 8 | ||
| SqlBase | abstract class | Drupal\views\Plugin\views\pager | core/ |
A common base class for sql based pager. | 2 |
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.