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 |
---|---|---|---|---|---|---|---|---|
SanitizeCombinedHeadersPropagationGetter | final class | OpenTelemetry\Context\Propagation | vendor/ |
Some servers concatenate multiple headers with ';' -- we need to replace these with ',' This is still a workaround and doesn't get around the problem fully, specifically it doesn't handle edge cases where the header has a… | ||||
SAPIUsageSniff | class | PHP_CodeSniffer\Standards\Generic\Sniffs\PHP | vendor/ |
|||||
SauceRest | class | WebDriver\SauceLabs | vendor/ |
WebDriver\SauceLabs\SauceRest class | ||||
SaveAction | class | Drupal\Core\Action\Plugin\Action | core/ |
Provides an action that can save any entity. | ||||
ScaffoldFileCollection | class | Drupal\Composer\Plugin\Scaffold\Operations | composer/ |
Collection of scaffold files. | 1 | |||
ScaffoldFileInfo | class | Drupal\Composer\Plugin\Scaffold | composer/ |
Data object that keeps track of one scaffold file. | 1 | |||
ScaffoldFilePath | class | Drupal\Composer\Plugin\Scaffold | composer/ |
Manage the path to a file to scaffold. | 8 | |||
ScaffoldOptions | class | Drupal\Composer\Plugin\Scaffold | composer/ |
Per-project options from the 'extras' section of the composer.json file. | 5 | |||
ScaffoldResult | class | Drupal\Composer\Plugin\Scaffold\Operations | composer/ |
Record the result of a scaffold operation. | 1 | |||
Scalar | abstract class | PhpParser\Node | vendor/ |
5 | 11 | |||
Scalar | final class | phpDocumentor\Reflection\Types | vendor/ |
Value Object representing the 'scalar' pseudo-type, which is either a string, integer, float or boolean. | 1 | |||
ScalarComparator | class | SebastianBergmann\Comparator | vendor/ |
Compares scalar or NULL values for equality. | 1 | |||
ScalarStub | class | Symfony\Component\VarDumper\Caster | vendor/ |
Represents any arbitrary value. | 1 | |||
Scale | class | Drupal\system\Plugin\ImageToolkit\Operation\gd | core/ |
Defines GD2 Scale operation. | ||||
ScaleAndCrop | class | Drupal\system\Plugin\ImageToolkit\Operation\gd | core/ |
Defines GD2 Scale and crop operation. | ||||
ScaleAndCropImageEffect | class | Drupal\image\Plugin\ImageEffect | core/ |
Scales and crops an image resource. | ||||
ScaleImageEffect | class | Drupal\image\Plugin\ImageEffect | core/ |
Scales an image resource. | ||||
Scanner | class | Peast\Syntax | vendor/ |
Base class for scanners. | ||||
Scanner | trait | Peast\Syntax\JSX | vendor/ |
JSX scanner trait | ||||
Scanner | class | Masterminds\HTML5\Parser | vendor/ |
The scanner scans over a given data input to react appropriately to characters. | 2 | |||
Schedule | class | Opentelemetry\Proto\Metrics\Experimental\MetricConfigResponse | vendor/ |
A Schedule is used to apply a particular scheduling configuration to a metric. If a metric name matches a schedule's patterns, then the metric adopts the configuration specified by the schedule. | ||||
Schema | abstract class | Drupal\Core\Database | core/ |
Provides a base implementation for Database Schema. | 3 | 3 | ||
Schema | class | Drupal\mysql\Driver\Database\mysql | core/ |
MySQL implementation of \Drupal\Core\Database\Schema. | ||||
Schema | class | Drupal\pgsql\Driver\Database\pgsql | core/ |
PostgreSQL implementation of \Drupal\Core\Database\Schema. | ||||
Schema | class | Drupal\sqlite\Driver\Database\sqlite | core/ |
SQLite implementation of \Drupal\Core\Database\Schema. | ||||
SchemaCheckTrait | trait | Drupal\Core\Config\Schema | core/ |
Provides a trait for checking configuration schema. | 2 | |||
SchemaCompatibilityChecker | class | Drupal\Core\Theme\Component | core/ |
Checks whether two schemas are compatible. | 1 | |||
SchemaConstraint | class | JsonSchema\Constraints | vendor/ |
The SchemaConstraint Constraints, validates an element against a given schema | ||||
SchemaDetectionResult | abstract class | PHPUnit\TextUI\XmlConfiguration | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | 2 | |||
SchemaDetector | final class | PHPUnit\TextUI\XmlConfiguration | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | 1 | |||
SchemaException | class | Drupal\Core\Database | core/ |
Base exception for Schema-related errors. | 4 | 4 | ||
SchemaFinder | final class | PHPUnit\TextUI\XmlConfiguration | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | ||||
SchemaIncompleteException | class | Drupal\Core\Config\Schema | core/ |
An exception thrown when a config schema is incomplete. | 3 | |||
SchemaObjectDoesNotExistException | class | Drupal\Core\Database | core/ |
Exception thrown if an object being modified doesn't exist yet. | 3 | |||
SchemaObjectExistsException | class | Drupal\Core\Database | core/ |
Exception thrown if an object being created already exists. | 4 | |||
SchemaStorage | class | JsonSchema | vendor/ |
1 | ||||
SchemaStorageInterface | interface | JsonSchema | vendor/ |
1 | 1 | |||
SchemaTableColumnSizeTooLargeException | class | Drupal\Core\Database\Exception | core/ |
Exception thrown if a column size is too large on table creation. | 1 | |||
SchemaTableKeyTooLargeException | class | Drupal\Core\Database\Exception | core/ |
Exception thrown if a key is too large. | 2 | |||
SchemeRequestMatcher | class | Symfony\Component\HttpFoundation\RequestMatcher | vendor/ |
Checks the HTTP scheme of a Request. | ||||
ScopeClosingBraceSniff | class | Drupal\Sniffs\WhiteSpace | vendor/ |
Copied from \PHP_CodeSniffer\Standards\PEAR\Sniffs\WhiteSpace\ScopeClosingBraceSniff to allow empty methods and classes. | ||||
ScopeClosingBraceSniff | class | PHP_CodeSniffer\Standards\PEAR\Sniffs\WhiteSpace | vendor/ |
|||||
ScopeClosingBraceSniff | class | PHP_CodeSniffer\Standards\Squiz\Sniffs\WhiteSpace | vendor/ |
|||||
ScopeHelper | class | SlevomatCodingStandard\Helpers | vendor/ |
@internal | 8 | |||
ScopeIndentSniff | class | PHP_CodeSniffer\Standards\PEAR\Sniffs\WhiteSpace | vendor/ |
|||||
ScopeIndentSniff | class | PHP_CodeSniffer\Standards\Generic\Sniffs\WhiteSpace | vendor/ |
1 | 1 | |||
ScopeIndentSniff | class | Drupal\Sniffs\WhiteSpace | vendor/ |
Largely copied from \PHP_CodeSniffer\Standards\Generic\Sniffs\WhiteSpace\ScopeIndentSniff, modified to make the exact mode working with comments and multi line statements. | ||||
ScopeInfo | class | VariableAnalysis\Lib | vendor/ |
Holds details of a scope. | 3 | |||
ScopeInterface | interface | OpenTelemetry\Context | vendor/ |
3 | 4 | |||
ScopeKeywordSpacingSniff | class | PHP_CodeSniffer\Standards\Squiz\Sniffs\WhiteSpace | vendor/ |