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 |
|---|---|---|---|---|---|---|---|---|
| SimpleConfigUpdate | final class | Drupal\Core\Config\Action\Plugin\ConfigAction | core/ |
@internal This API is experimental. | ||||
| SimpleConfigValidationTest | class | Drupal\KernelTests\Core\Config | core/ |
Tests validation of certain elements common to all config. | ||||
| SimplePageVariant | class | Drupal\Core\Render\Plugin\DisplayVariant | core/ |
Provides a page display variant that simply renders the main content. | 1 | |||
| SimplePageVariantTest | class | Drupal\Tests\Core\Render\Plugin\DisplayVariant | core/ |
Tests Drupal\Core\Render\Plugin\DisplayVariant\SimplePageVariant. | ||||
| SimpleSource | class | Drupal\migrate_plugin_config_test\Plugin\migrate\source | core/ |
Simple source for testing changing configuration. | ||||
| SimpletestTestRunResultsStorage | class | Drupal\Core\Test | core/ |
Implements a test run results storage compatible with legacy Simpletest. | 3 | |||
| SimpletestTestRunResultsStorageTest | class | Drupal\KernelTests\Core\Test | core/ |
Tests Drupal\Core\Test\SimpletestTestRunResultsStorage. | ||||
| SingleFlushStrategy | class | Drupal\Core\Render\Placeholder | core/ |
Defines the 'single_flush' placeholder strategy. | 2 | |||
| SingleInternalPropertyTestFieldItem | class | Drupal\entity_test\Plugin\Field\FieldType | core/ |
Defines the 'Single Internal Property' entity test field type. | ||||
| SingleVisibleProfileTest | class | Drupal\FunctionalTests\Installer | core/ |
Tests distribution profile support. | ||||
| SiteCacheContext | class | Drupal\Core\Cache\Context | core/ |
Defines the SiteCacheContext service, for "per site" caching. | 2 | |||
| SiteConfigurationExcluder | class | Drupal\package_manager\PathExcluder | core/ |
Excludes site configuration files from stage directories. | 1 | 1 | ||
| SiteConfigurationExcluderTest | class | Drupal\Tests\package_manager\Kernel\PathExcluder | core/ |
Tests Site Configuration Excluder. | ||||
| SiteConfigureForm | class | Drupal\Core\Installer\Form | core/ |
Provides the site configuration form. | ||||
| SiteFilesExcluder | final class | Drupal\package_manager\PathExcluder | core/ |
Excludes site files from stage operations. | 1 | |||
| SiteFilesExcluderTest | class | Drupal\Tests\package_manager\Kernel\PathExcluder | core/ |
Tests Site Files Excluder. | ||||
| SiteInformationForm | class | Drupal\system\Form | core/ |
Configure site information settings for this site. | 1 | |||
| SiteMaintenanceModeForm | class | Drupal\system\Form | core/ |
Configure maintenance settings for this site. | 1 | |||
| SiteMaintenanceTest | class | Drupal\Tests\system\Functional\System | core/ |
Tests access to site while in maintenance mode. | ||||
| SiteNameTest | class | Drupal\FunctionalTests\Installer | core/ |
Tests that the site name can be set during a non-interactive installation. | ||||
| 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 | 2 | ||
| SiteSettingsFormTest | class | Drupal\FunctionalTests\Installer | core/ |
Tests the extension of the site settings form. | ||||
| 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/ |
Tests Drupal\Composer\Plugin\Scaffold\Operations\SkipOp. | ||||
| SkippablePathBasedBreadcrumbBuilder | class | Drupal\menu_test | core/ |
A path-based breadcrumb builder can be skipped from applying. | ||||
| SkipProceduralHooks | class | Drupal\hook_collector_skip_procedural\Hook | core/ |
Hook implementations for hook_collector_skip_procedural. | ||||
| 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. | 3 | 2 | ||
| SmartDefaultSettingsTest | class | Drupal\Tests\ckeditor5\Unit | core/ |
Tests Drupal\ckeditor5\SmartDefaultSettings. | ||||
| SmartDefaultSettingsTest | class | Drupal\Tests\ckeditor5\Kernel | core/ |
Tests Smart Default Settings. | ||||
| SneakySuperset | class | Drupal\ckeditor5_plugin_elements_subset\Plugin\CKEditor5Plugin | core/ |
Provides a plugin for testing CKEditor. | 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/ |
Class for testing module autoloading. | 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. | 2 | |||
| SortArray | class | Drupal\Component\Utility | core/ |
Provides generic array sorting helper methods. | 15 | |||
| 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. |
Pagination
- Previous page
- Page 177
- Next page
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.