Classes, traits, and interfaces - Drupal 11.1.x - Drupal Core
Primary tabs
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 1518
Name | Deprecated | Object type | Namespace | File name | Summary | Direct uses | Use statements | Strings |
---|---|---|---|---|---|---|---|---|
SymlinkValidator | final class | Drupal\package_manager\Validator | core/ |
Flags errors if unsupported symbolic links are detected. | ||||
SyncHelper | class | Composer\Util | vendor/ |
1 | ||||
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 | 3 | ||
SynchronousInstrument | interface | OpenTelemetry\API\Metrics | vendor/ |
Marker interface for synchronous instruments. | 4 | |||
SynchronousInstrumentTrait | trait | OpenTelemetry\SDK\Metrics | vendor/ |
@internal | ||||
SynchronousMetricStream | final class | OpenTelemetry\SDK\Metrics\Stream | vendor/ |
@internal @phan-file-suppress PhanUndeclaredTypeParameter, PhanUndeclaredTypeProperty | 1 | |||
SyndicateBlock | class | Drupal\node\Plugin\Block | core/ |
Provides a 'Syndicate' block that links to the site's RSS feed. | ||||
Syntax | class | Google\Protobuf | vendor/ |
The syntax in which a protocol buffer element is defined. | ||||
SyntaxError | class | Twig\Error | vendor/ |
\Exception thrown when a syntax error occurs during lexing or parsing of a template. | 31 | |||
SyntaxErrorException | class | Symfony\Component\CssSelector\Exception | vendor/ |
ParseException is thrown when a CSS selector syntax is not valid. | 4 | |||
SyntaxSniff | class | PHP_CodeSniffer\Standards\Generic\Sniffs\PHP | vendor/ |
|||||
SyntheticTrait | trait | Symfony\Component\DependencyInjection\Loader\Configurator\Traits | vendor/ |
|||||
SysLog | class | Drupal\syslog\Logger | core/ |
Redirects logging messages to syslog. | 2 | |||
SyslogHooks | class | Drupal\syslog\Hook | core/ |
Hook implementations for syslog. | ||||
System | final class | PHPUnit\Event\Telemetry | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | ||||
System | class | vendor/ |
System offers cross platform compatible system functions | |||||
SystemAdminMenuBlockAccessCheck | class | Drupal\system\Access | core/ |
Access check for routes implementing _access_admin_menu_block_page. | 3 | |||
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. | 1 | |||
SystemBreadcrumbBlock | class | Drupal\system\Plugin\Block | core/ |
Provides a block to display the breadcrumbs. | ||||
SystemClock | final class | OpenTelemetry\API\Common\Time | vendor/ |
@internal OpenTelemetry | ||||
SystemCompactLink | class | Drupal\Core\Render\Element | core/ |
Provides a link to show or hide help text on administration pages. | ||||
SystemConfigSubscriber | class | Drupal\system | core/ |
System Config subscriber. | 2 | |||
SystemController | class | Drupal\system\Controller | core/ |
Returns responses for System routes. | ||||
SystemDceSecurityProvider | class | Ramsey\Uuid\Provider\Dce | vendor/ |
SystemDceSecurityProvider retrieves the user or group identifiers from the system | 1 | |||
SystemHooks | class | Drupal\system\Hook | core/ |
Hook implementations for system. | ||||
SystemInfoController | class | Drupal\system\Controller | core/ |
Returns responses for System Info routes. | ||||
SystemMainBlock | class | Drupal\system\Plugin\Block | core/ |
Provides a 'Main page content' block. | ||||
SystemManager | class | Drupal\system | core/ |
System Manager Service. | 5 | 2 | ||
SystemMemoryMeter | final class | PHPUnit\Event\Telemetry | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | ||||
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 | ||
SystemMenuNavigationBlock | final class | Drupal\navigation\Plugin\Derivative | core/ |
Provides navigation block plugin definitions for custom menus. | 1 | |||
SystemMenuOffCanvasForm | class | Drupal\system\Form | core/ |
The setting_tray form handler for the SystemMenuBlock. | 1 | |||
SystemMessagesBlock | class | Drupal\system\Plugin\Block | core/ |
Provides a block to display the messages. | ||||
SystemNodeProvider | class | Ramsey\Uuid\Provider\Node | vendor/ |
SystemNodeProvider retrieves the system node ID, if possible | 1 | |||
SystemPoweredByBlock | class | Drupal\system\Plugin\Block | core/ |
Provides a 'Powered by Drupal' block. | ||||
SystemStopWatch | final class | PHPUnit\Event\Telemetry | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | ||||
SystemStopWatchWithOffset | final class | PHPUnit\Event\Telemetry | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | ||||
SystemTimeProvider | class | Ramsey\Uuid\Provider\Time | vendor/ |
SystemTimeProvider retrieves the current time using built-in PHP functions | 1 | |||
SystemTokensHooks | class | Drupal\system\Hook | core/ |
Hook implementations for system. | ||||
SystemUpdate7000 | class | Drupal\system\Plugin\migrate\process\d6 | core/ |
Rename blog and forum permissions to be consistent with other content types. | ||||
Table | class | Drupal\views\Plugin\views\style | core/ |
Style plugin to render each item as a row in a table. | 1 | |||
Table | class | Symfony\Component\Console\Helper | vendor/ |
Provides helpers to display a table. | 7 | |||
Table | class | Drupal\Core\Render\Element | core/ |
Provides a render element for a table. | 2 | 1 | ||
TableCell | class | Symfony\Component\Console\Helper | vendor/ |
@author Abdellatif Ait boudad <a.aitboudad@gmail.com> | 1 | 1 | ||
TableCellStyle | class | Symfony\Component\Console\Helper | vendor/ |
@author Yewhen Khoptynskyi <khoptynskyi@gmail.com> | ||||
TabledragWarningCommand | class | Drupal\Core\Ajax | core/ |
AJAX command for conveying changed tabledrag rows. | 1 | |||
TableFormatter | class | Drupal\file\Plugin\Field\FieldFormatter | core/ |
Plugin implementation of the 'file_table' formatter. |