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 |
|---|---|---|---|---|---|---|---|---|
| SvgIconBuilder | class | Drupal\Core\Layout\Icon | core/ |
Builds SVG layout icons. | 1 | 2 | ||
| SvgSpriteExtractor | class | Drupal\Core\Theme\Plugin\IconExtractor | core/ |
Plugin implementation of the icon_extractor. | 1 | |||
| SvgSpriteExtractorTest | class | Drupal\Tests\Core\Theme\Icon\Plugin | core/ |
Tests Drupal\Core\Theme\Plugin\IconExtractor\SvgSpriteExtractor. | ||||
| SwitchShortcutSet | class | Drupal\shortcut\Form | core/ |
Builds the shortcut set switch form. | 1 | |||
| SwitchToLiveForm | class | Drupal\workspaces_ui\Form | core/ |
Provides a form that switches to the live version of the site. | 1 | |||
| SymfonyMailer | class | Drupal\Core\Mail\Plugin\Mail | core/ |
Defines an experimental mail backend, based on the Symfony mailer component. | 1 | |||
| SymfonyMailerTest | class | Drupal\Tests\Core\Mail\Plugin\Mail | core/ |
Tests Drupal\Core\Mail\Plugin\Mail\SymfonyMailer. | ||||
| SymlinkValidator | final class | Drupal\package_manager\Validator | core/ |
Flags errors if unsupported symbolic links are detected. | 1 | |||
| SymlinkValidatorTest | class | Drupal\Tests\package_manager\Kernel | core/ |
Tests Symlink Validator. | ||||
| 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 | 4 | ||
| SynchronizeCsrfTokenSeedTrait | trait | Drupal\Tests\ckeditor5\Traits | core/ |
Synchronizes the child site's CSRF token seed back to the test runner. | 2 | |||
| SyndicateBlock | in drupal:11.2.0 and is removed from drupal:12.0.0. There is no replacement. |
class | Drupal\node\Plugin\Block | core/ |
Provides a 'Syndicate' block that links to the site's RSS feed. | |||
| SyntaxTest | class | Drupal\Tests\sqlite\Kernel\sqlite | core/ |
Tests SQLite syntax interpretation. | ||||
| SyntaxTest | class | Drupal\Tests\mysql\Kernel\mysql | core/ |
Tests MySql syntax interpretation. | ||||
| SyntaxTest | class | Drupal\Tests\pgsql\Kernel\pgsql | core/ |
Tests PostgreSQL syntax interpretation. | ||||
| SyntaxTest | class | Drupal\Tests\mysqli\Kernel\mysqli | core/ |
Tests MySql syntax interpretation. | ||||
| SysLog | class | Drupal\syslog\Logger | core/ |
Redirects logging messages to syslog. | 1 | 2 | 2 | |
| SysLogFile | class | Drupal\syslog_test\Logger | core/ |
Redirects logging messages to error_log. | 2 | |||
| SyslogHooks | class | Drupal\syslog\Hook | core/ |
Hook implementations for syslog. | ||||
| SyslogTest | class | Drupal\Tests\syslog\Kernel | core/ |
Test syslog logger functionality. | ||||
| SyslogTest | class | Drupal\Tests\syslog\Functional | core/ |
Tests syslog settings. | ||||
| SystemAdminMenuBlockAccessCheck | class | Drupal\system\Access | core/ |
Access check for routes implementing _access_admin_menu_block_page. | 3 | |||
| SystemAdminThemePreprocess | class | Drupal\system\Theme | core/ |
Hook implementations for system. | 1 | 2 | ||
| 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. | ||||
| SystemBrandingOffCanvasForm | class | Drupal\settings_tray\Form | core/ |
The settings_tray form handler for the SystemBrandingBlock. | 1 | |||
| 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. | 3 | |||
| SystemFilesTest | class | Drupal\FunctionalTests\Routing | core/ |
Tests system.files route. | ||||
| SystemHooks | class | Drupal\system\Hook | core/ |
Hook implementations for system. | 2 | |||
| 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. | 1 | |||
| SystemMenuBlock | class | Drupal\system\Plugin\Block | core/ |
Provides a generic Menu block. | 1 | 1 | ||
| SystemMenuBlockTest | class | Drupal\Tests\system\Kernel\Block | core/ |
Tests \Drupal\system\Plugin\Block\SystemMenuBlock. | ||||
| SystemMenuBlockUiTest | class | Drupal\Tests\system\FunctionalJavascript\Block | core/ |
Test the #states on the system menu block form. | ||||
| SystemMenuNavigationBlock | final class | Drupal\navigation\Plugin\Derivative | core/ |
Provides navigation block plugin definitions for custom menus. | 1 | |||
| SystemMenuOffCanvasForm | class | Drupal\settings_tray\Form | core/ |
The setting_tray form handler for the SystemMenuBlock. | 1 | |||
| SystemMenuOffCanvasForm | class | Drupal\system\Form | core/ |
The setting_tray form handler for the SystemMenuBlock. | ||||
| SystemMessagesBlock | class | Drupal\system\Plugin\Block | core/ |
Provides a block to display the messages. | ||||
| SystemModuleTestHooks | class | Drupal\system_module_test\Hook | core/ |
Hook implementations for system_module_test. |
Pagination
- Previous page
- Page 184
- Next page
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.