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 |
|---|---|---|---|---|---|---|---|---|
| SubProcess | class | Drupal\migrate\Plugin\migrate\process | core/ |
Runs an array of arrays through its own process pipeline. | 2 | |||
| SubProcessTest | class | Drupal\Tests\migrate\Unit\process | core/ |
Tests the sub_process process plugin. | ||||
| SubProcessWithSkipTest | class | Drupal\Tests\migrate\Kernel\process | core/ |
Tests process pipelines when a sub_process skips a row or process. | ||||
| Subquery | class | Drupal\views\Plugin\views\join | core/ |
Join handler for relationships that join with a subquery as the left field. | ||||
| SubscriberBase | abstract class | Drupal\TestTools\Extension\HtmlLogging | core/ |
Base class for PHPUnit event subscribers related to HTML logging. | 2 | |||
| 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 | |||
| SuperUserAccessInstallTest | class | Drupal\FunctionalTests\Installer | core/ |
Tests superuser access and the installer. | ||||
| SuperUserAccessPolicy | final class | Drupal\Core\Session | core/ |
Grants user 1 an all access pass. | 1 | 2 | ||
| SuperUserAccessPolicyPass | class | Drupal\Core\DependencyInjection\Compiler | core/ |
Removes the super user access policy when toggled off. | 2 | |||
| SuperUserAccessPolicyTest | class | Drupal\Tests\Core\Session | core/ |
Tests Drupal\Core\Session\SuperUserAccessPolicy. | ||||
| SuperUserPermissionsTest | class | Drupal\KernelTests\Core\Session | core/ |
Test case for getting all permissions as a super user. | ||||
| SupportAwareSectionStorageInterface | interface | Drupal\layout_builder | core/ |
Interface for section storage that knows whether it supports a view mode. | 5 | 4 | ||
| SupportAwareSectionStorageManagerInterface | interface | Drupal\layout_builder\SectionStorage | core/ |
Interface for section manager that knows whether it supports view modes. | 1 | 1 | ||
| SupportedReleaseValidator | final class | Drupal\package_manager\Validator | core/ |
Validates that updated projects are secure and supported. | 2 | |||
| SupportedReleaseValidatorTest | class | Drupal\Tests\package_manager\Kernel | core/ |
Tests Drupal\package_manager\Validator\SupportedReleaseValidator. | ||||
| SupportsTemporaryTablesInterface | interface | Drupal\Core\Database | core/ |
Adds support for temporary tables. | 3 | 3 | ||
| SuspendQueueException | class | Drupal\Core\Queue | core/ |
Exception class to throw to indicate that a cron queue should be skipped. | 4 | |||
| SvgExtractor | class | Drupal\Core\Theme\Plugin\IconExtractor | core/ |
Plugin implementation of the icon_extractor. | 1 | |||
| SvgExtractorTest | class | Drupal\Tests\Core\Theme\Icon\Plugin | core/ |
Tests Drupal\Core\Theme\Plugin\IconExtractor\SvgExtractor. | ||||
| 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. |
Pagination
- Previous page
- Page 186
- Next page
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.