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 |
|---|---|---|---|---|---|---|---|---|
| StyleTableTest | class | Drupal\Tests\views_ui\Functional | core/ |
Tests the UI of views when using the table style. | ||||
| StyleTableUnitTest | class | Drupal\Tests\views\Kernel\Plugin | core/ |
Tests the table style plugin. | ||||
| StyleTemplateTest | class | Drupal\views_test_data\Plugin\views\style | core/ |
Provides a general test style template plugin. | ||||
| StyleTest | class | Drupal\views_test_data\Plugin\views\style | core/ |
Provides a general test style plugin. | 1 | |||
| StyleTest | class | Drupal\Tests\views\Kernel\Plugin | core/ |
Tests general style functionality. | ||||
| StyleTest | class | Drupal\Tests\ckeditor5\FunctionalJavascript | core/ |
@coversDefaultClass \Drupal\ckeditor5\Plugin\CKEditor5Plugin\Style[[api-linebreak]] @group ckeditor5 @internal | ||||
| StyleTestBase | abstract class | Drupal\Tests\views\Kernel\Plugin | core/ |
Tests some general style plugin related functionality. | 2 | |||
| StyleUITest | class | Drupal\Tests\views_ui\Functional | core/ |
Tests the UI of style plugins. | ||||
| StyleUnformattedTest | class | Drupal\Tests\views\Kernel\Plugin | core/ |
Tests unformatted style functionality. | ||||
| SubformState | class | Drupal\Core\Form | core/ |
Stores information about the state of a subform. | 15 | |||
| SubformStateInterface | interface | Drupal\Core\Form | core/ |
Stores information about the state of a subform. | 1 | 4 | ||
| SubformStateTest | class | Drupal\Tests\Core\Form | core/ |
@coversDefaultClass \Drupal\Core\Form\SubformState[[api-linebreak]] | ||||
| Submit | class | Drupal\Core\Render\Element | core/ |
Provides a form submit button. | 1 | |||
| SubProcess | class | Drupal\migrate\Plugin\migrate\process | core/ |
Runs an array of arrays through its own process pipeline. | 1 | |||
| SubProcessTest | class | Drupal\Tests\migrate\Unit\process | core/ |
Tests the sub_process process plugin. | ||||
| Subquery | class | Drupal\views\Plugin\views\join | core/ |
Join handler for relationships that join with a subquery as the left field. | ||||
| Substr | class | Drupal\migrate\Plugin\migrate\process | core/ |
Returns a substring of the input value. | 1 | |||
| SubstrTest | class | Drupal\Tests\migrate\Unit\process | core/ |
Tests the substr plugin. | ||||
| SummaryLengthTest | class | Drupal\Tests\node\Kernel | core/ |
Tests summary length. | ||||
| SupernovaGenerator | class | Drupal\help_test | core/ |
Implements a URL generator which always thrown an exception. | 1 | |||
| SuspendQueueException | class | Drupal\Core\Queue | core/ |
Exception class to throw to indicate that a cron queue should be skipped. | 3 | |||
| SvgIconBuilder | class | Drupal\Core\Layout\Icon | core/ |
Builds SVG layout icons. | 1 | 2 | ||
| SwitchShortcutSet | class | Drupal\shortcut\Form | core/ |
Builds the shortcut set switch form. | 1 | |||
| SwitchToLiveForm | class | Drupal\workspaces\Form | core/ |
Provides a form that switches to the live version of the site. | 1 | |||
| SymfonyInheritedEvent | class | Drupal\Tests\Component\EventDispatcher | core/ |
|||||
| SynchronizableEntityTrait | trait | Drupal\Core\Entity | core/ |
Provides a trait for accessing synchronization information. | 1 | |||
| SynchronizableInterface | interface | Drupal\Core\Entity | core/ |
Defines methods for an entity that supports synchronization. | 2 | 1 | ||
| SynchronizeCsrfTokenSeedTrait | trait | Drupal\Tests\ckeditor5\Traits | core/ |
Synchronizes the child site's CSRF token seed back to the test runner. | 2 | |||
| SyndicateBlock | class | Drupal\node\Plugin\Block | core/ |
Provides a 'Syndicate' block that links to the site's RSS feed. | ||||
| SysLog | class | Drupal\syslog\Logger | core/ |
Redirects logging messages to syslog. | 1 | 1 | 2 | |
| SyslogTest | class | Drupal\Tests\syslog\Kernel | core/ |
Test syslog logger functionality. | ||||
| SyslogTest | class | Drupal\Tests\syslog\Functional | core/ |
Tests syslog settings. | ||||
| SysLogTest | class | Drupal\syslog_test\Logger | core/ |
Redirects logging messages to error_log. | 2 | |||
| SystemAuthorizeTest | class | Drupal\Tests\system\Functional\System | core/ |
Tests the authorize.php script and related API. | ||||
| SystemBrandingBlock | class | Drupal\system\Plugin\Block | core/ |
Provides a block to display 'Site branding' elements. | ||||
| SystemBrandingOffCanvasForm | class | Drupal\system\Form | core/ |
The settings_tray form handler for the SystemBrandingBlock. | ||||
| SystemBreadcrumbBlock | class | Drupal\system\Plugin\Block | core/ |
Provides a block to display the breadcrumbs. | ||||
| SystemCompactLink | class | Drupal\Core\Render\Element | core/ |
Provides a link to show or hide help text on administration pages. | ||||
| SystemConfigFormTest | class | Drupal\Tests\system\Functional\Form | core/ |
Tests the SystemConfigFormTestBase class. | ||||
| SystemConfigFormTestForm | class | Drupal\form_test | core/ |
Tests the ConfigFormBase class. | 1 | |||
| SystemConfigSubscriber | class | Drupal\system | core/ |
System Config subscriber. | 2 | |||
| SystemController | class | Drupal\system\Controller | core/ |
Returns responses for System routes. | ||||
| SystemDeprecationTest | class | Drupal\Tests\system\Kernel | core/ |
@group system @group legacy | ||||
| SystemInfoController | class | Drupal\system\Controller | core/ |
Returns responses for System Info routes. | ||||
| SystemListingCrossProfileCompatibleTest | class | Drupal\Tests\drupal_system_listing_compatible_test\Kernel | core/ |
Verifies that tests in installation profile modules are found. | ||||
| SystemListingTest | class | Drupal\Tests\system\Kernel\Common | core/ |
Tests scanning system directories in drupal_system_listing(). | ||||
| SystemLocalTasksTest | class | Drupal\Tests\system\Unit\Menu | core/ |
Tests existence of system local tasks. | ||||
| SystemMainBlock | class | Drupal\system\Plugin\Block | core/ |
Provides a 'Main page content' block. | ||||
| SystemManager | class | Drupal\system | core/ |
System Manager Service. | 2 | 2 | ||
| SystemMenuBlock | class | Drupal\system\Plugin\Derivative | core/ |
Provides block plugin definitions for custom menus. |
Pagination
- Previous page
- Page 158
- Next page
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.