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 |
---|---|---|---|---|---|---|---|---|
SumAggregation | final class | OpenTelemetry\SDK\Metrics\Aggregation | vendor/ |
@implements AggregationInterface<SumSummary> | ||||
Summary | class | Opentelemetry\Proto\Metrics\V1 | vendor/ |
Summary metric data are used to convey quantile summaries, a Prometheus (see: https://prometheus.io/docs/concepts/metric_types/#summary) and OpenMetrics (see:… | ||||
Summary | class | PHP_CodeSniffer\Reports | vendor/ |
|||||
SummaryDataPoint | class | Opentelemetry\Proto\Metrics\V1 | vendor/ |
SummaryDataPoint is a single data point in a timeseries that describes the time-varying values of a Summary metric. | ||||
SummaryPrinter | final class | PHPUnit\TextUI\Output | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | ||||
SumSummary | final class | OpenTelemetry\SDK\Metrics\Aggregation | vendor/ |
|||||
Super | class | Peast\Syntax\Node | vendor/ |
A node that represents the "super" keyword. | ||||
SuperfluousAbstractClassNamingSniff | class | SlevomatCodingStandard\Sniffs\Classes | vendor/ |
|||||
SuperfluousErrorNamingSniff | class | SlevomatCodingStandard\Sniffs\Classes | vendor/ |
|||||
SuperfluousExceptionNamingSniff | class | SlevomatCodingStandard\Sniffs\Classes | vendor/ |
|||||
SuperfluousInterfaceNamingSniff | class | SlevomatCodingStandard\Sniffs\Classes | vendor/ |
|||||
SuperfluousTraitNamingSniff | class | SlevomatCodingStandard\Sniffs\Classes | vendor/ |
|||||
SuperfluousWhitespaceSniff | class | PHP_CodeSniffer\Standards\Squiz\Sniffs\WhiteSpace | vendor/ |
|||||
SuperUserAccessPolicy | final class | Drupal\Core\Session | core/ |
Grants user 1 an all access pass. | ||||
SuperUserAccessPolicyPass | class | Drupal\Core\DependencyInjection\Compiler | core/ |
Removes the super user access policy when toggled off. | 1 | |||
SupportedReleaseValidator | final class | Drupal\package_manager\Validator | core/ |
Validates that updated projects are secure and supported. | ||||
SupportsTemporaryTablesInterface | interface | Drupal\Core\Database | core/ |
Adds support for temporary tables. | 3 | 3 | ||
SuppressHelper | class | SlevomatCodingStandard\Helpers | vendor/ |
@internal | 7 | |||
SurrogateInterface | interface | Symfony\Component\HttpKernel\HttpCache | vendor/ |
1 | 2 | |||
SurrogateListener | class | Symfony\Component\HttpKernel\EventListener | vendor/ |
SurrogateListener adds a Surrogate-Control HTTP header when the Response needs to be parsed for Surrogates. | ||||
SuspendQueueException | class | Drupal\Core\Queue | core/ |
Exception class to throw to indicate that a cron queue should be skipped. | 1 | |||
Suspension | interface | Revolt\EventLoop | vendor/ |
Should be used to run and suspend the event loop instead of directly interacting with fibers. | 1 | 4 | ||
SuspiciousOperationException | class | Symfony\Component\HttpFoundation\Exception | vendor/ |
Raised when a user has performed an operation that should be considered suspicious from a security perspective. | 2 | |||
SvgExtractor | class | Drupal\Core\Theme\Plugin\IconExtractor | core/ |
Plugin implementation of the icon_extractor. | ||||
SvgIconBuilder | class | Drupal\Core\Layout\Icon | core/ |
Builds SVG layout icons. | 2 | |||
SvgSpriteExtractor | class | Drupal\Core\Theme\Plugin\IconExtractor | core/ |
Plugin implementation of the icon_extractor. | ||||
Svn | class | Composer\Util | vendor/ |
@author Till Klampaeckel <till@php.net> @author Jordi Boggiano <j.boggiano@seld.be> | 3 | |||
Svnblame | class | PHP_CodeSniffer\Reports | vendor/ |
|||||
SvnDownloader | class | Composer\Downloader | vendor/ |
@author Ben Bieker <mail@ben-bieker.de> @author Till Klampaeckel <till@php.net> | ||||
SvnDriver | class | Composer\Repository\Vcs | vendor/ |
@author Jordi Boggiano <j.boggiano@seld.be> @author Till Klampaeckel <till@php.net> | ||||
SwitchCase | class | Peast\Syntax\Node | vendor/ |
A node that represents a case in a switch statement. | ||||
SwitchDeclarationSniff | class | PHP_CodeSniffer\Standards\Squiz\Sniffs\ControlStructures | vendor/ |
|||||
SwitchDeclarationSniff | class | PHP_CodeSniffer\Standards\PSR2\Sniffs\ControlStructures | vendor/ |
|||||
SwitchShortcutSet | class | Drupal\shortcut\Form | core/ |
Builds the shortcut set switch form. | 1 | |||
SwitchStatement | class | Peast\Syntax\Node | vendor/ |
A node that represents a switch statement. For example: switch (test) {} | ||||
SwitchToLiveForm | class | Drupal\workspaces\Form | core/ |
Provides a form that switches to the live version of the site. | 1 | |||
Switch_ | class | PhpParser\Node\Stmt | vendor/ |
|||||
SyDESInstaller | class | Composer\Installers | vendor/ |
|||||
SyliusInstaller | class | Composer\Installers | vendor/ |
|||||
Symfony | class | OpenTelemetry\SDK\Common\Http\Psr\Client\Discovery | vendor/ |
1 | ||||
SymfonyCaster | class | Symfony\Component\VarDumper\Caster | vendor/ |
@final | ||||
SymfonyCmfRouteObjectInterfaceConstantsRule | final class | mglaman\PHPStanDrupal\Rules\Deprecations | vendor/ |
@implements Rule<Node\Expr\ClassConstFetch> | ||||
SymfonyCmfRoutingInClassMethodSignatureRule | final class | mglaman\PHPStanDrupal\Rules\Deprecations | vendor/ |
@implements Rule<InClassMethodNode> | ||||
SymfonyMailer | class | Drupal\Core\Mail\Plugin\Mail | core/ |
Defines an experimental mail backend, based on the Symfony mailer component. | ||||
SymfonyProcessFactory | final class | PhpTuf\ComposerStager\Internal\Process\Factory | vendor/ |
@package Process | 2 | |||
SymfonyProcessFactoryInterface | interface | PhpTuf\ComposerStager\Internal\Process\Factory | vendor/ |
Creates Symfony Process objects. | 1 | 1 | ||
SymfonyQuestionHelper | class | Symfony\Component\Console\Helper | vendor/ |
Symfony Style Guide compliant question helper. | 1 | |||
SymfonyStyle | class | Symfony\Component\Console\Style | vendor/ |
Output decorator helpers for the Symfony Style Guide. | 14 | |||
SymfonyTranslatorProxy | final class | PhpTuf\ComposerStager\Internal\Translation\Service | vendor/ |
@package Translation | 2 | |||
SymfonyTranslatorProxyInterface | interface | PhpTuf\ComposerStager\Internal\Translation\Service | vendor/ |
Provides a thin wrapper around Symfony's default translator implementation. | 1 |