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 |
---|---|---|---|---|---|---|---|---|
SolverProblemsException | class | Composer\DependencyResolver | vendor/ |
@author Nils Adermann <naderman@naderman.de> | 1 | |||
Some | class | Drupal\views\Plugin\views\pager | core/ |
Plugin for views without pagers. | ||||
Sort | class | Drupal\jsonapi\Query | core/ |
Gathers information about the sort parameter. | 1 | |||
SortableIterator | class | Symfony\Component\Finder\Iterator | vendor/ |
SortableIterator applies a sort on a given Iterator. | 1 | |||
SortArray | class | Drupal\Component\Utility | core/ |
Provides generic array sorting helper methods. | 9 | |||
Sorted | final class | PHPUnit\Event\TestSuite | vendor/ |
@psalm-immutable | 1 | |||
SortedSubscriber | interface | PHPUnit\Event\TestSuite | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | ||||
SortPluginBase | abstract class | Drupal\views\Plugin\views\sort | core/ |
Base sort handler that has no options and performs a simple sort. | 9 | 4 | ||
Source | final class | PHPUnit\TextUI\Configuration | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | 8 | |||
Source | class | PHP_CodeSniffer\Reports | vendor/ |
|||||
Source | final class | SebastianBergmann\CodeCoverage\Report\Xml | vendor/ |
@internal This class is not covered by the backward compatibility promise for phpunit/php-code-coverage | ||||
Source | final class | Twig | vendor/ |
Holds information about a non-compiled Twig template. | 15 | |||
Source | final class | phpDocumentor\Reflection\DocBlock\Tags | vendor/ |
Reflection class for a {source tag in a Docblock. | 1 | |||
SourceCodeInfo | class | Google\Protobuf\Internal | vendor/ |
Encapsulates information about the original source file from which a FileDescriptorProto was generated. | ||||
SourceContext | class | GPBMetadata\Google\Protobuf | vendor/ |
|||||
SourceContext | class | Google\Protobuf | vendor/ |
`SourceContext` represents information about the source of a protobuf element, like the file in which it is defined. | ||||
SourceContextProvider | final class | Symfony\Component\VarDumper\Dumper\ContextProvider | vendor/ |
Tries to provide context from sources (class name, file, line, code excerpt, ...). | 3 | |||
SourceEditing | class | Drupal\ckeditor5\Plugin\CKEditor5Plugin | core/ |
CKEditor 5 Source Editing plugin configuration. | 1 | |||
SourceEditingPreventSelfXssConstraint | class | Drupal\ckeditor5\Plugin\Validation\Constraint | core/ |
For disallowing Source Editing configuration that allows self-XSS. | ||||
SourceEditingPreventSelfXssConstraintValidator | class | Drupal\ckeditor5\Plugin\Validation\Constraint | core/ |
Ensures Source Editing cannot be configured to allow self-XSS. | ||||
SourceEditingRedundantTagsConstraint | class | Drupal\ckeditor5\Plugin\Validation\Constraint | core/ |
For disallowing Source Editing elements already supported by a plugin. | ||||
SourceEditingRedundantTagsConstraintValidator | class | Drupal\ckeditor5\Plugin\Validation\Constraint | core/ |
Ensures tags already available via plugin are not be added to Source Editing. | ||||
SourceFilter | final class | PHPUnit\TextUI\Configuration | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | 4 | |||
SourceLocation | class | Peast\Syntax | vendor/ |
This class represents a location in the source code with start and end position. | 1 | |||
SourceMapper | final class | PHPUnit\TextUI\Configuration | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | ||||
SourcePluginBase | abstract class | Drupal\migrate\Plugin\migrate\source | core/ |
The base class for source plugins. | 4 | 2 | ||
SourcePolicyInterface | interface | Twig\Sandbox | vendor/ |
Interface for a class that can optionally enable the sandbox mode based on a template's Twig\Source. | 1 | |||
SourceString | class | Drupal\locale | core/ |
Defines the locale source string object. | 1 | |||
SpaceAfterCastSniff | class | PHP_CodeSniffer\Standards\Generic\Sniffs\Formatting | vendor/ |
|||||
SpaceAfterNotSniff | class | PHP_CodeSniffer\Standards\Generic\Sniffs\Formatting | vendor/ |
|||||
SpaceBeforeCastSniff | class | PHP_CodeSniffer\Standards\Generic\Sniffs\Formatting | vendor/ |
|||||
SpaceInlineIfSniff | class | Drupal\Sniffs\Formatting | vendor/ |
Checks that there is no space between "?" and ":" inline if/else statements. | ||||
Spaceship | class | PhpParser\Node\Expr\BinaryOp | vendor/ |
|||||
SpaceshipBinary | class | Twig\Node\Expression\Binary | vendor/ |
1 | ||||
SpaceUnaryOperatorSniff | class | Drupal\Sniffs\Formatting | vendor/ |
\PHP_CodeSniffer\Standards\Generic\Sniffs\Formatting\SpaceUnaryOperatorSniff. | ||||
Span | final class | OpenTelemetry\SDK\Trace | vendor/ |
4 | ||||
Span | class | Opentelemetry\Proto\Trace\V1 | vendor/ |
A Span represents a single operation performed by a single component of the system. The next available field id is 17. | 1 | |||
Span | abstract class | OpenTelemetry\API\Trace | vendor/ |
1 | 6 | |||
SpanAttribute | final class | OpenTelemetry\API\Instrumentation | vendor/ |
For function and methods that have the {@link WithSpan} attribute, adding this attribute to an argument will add the argument as a span attribute. | ||||
SpanBuilder | final class | OpenTelemetry\SDK\Trace | vendor/ |
|||||
SpanBuilderInterface | interface | OpenTelemetry\API\Trace | vendor/ |
Obtained from a { | 1 | |||
SpanContext | final class | OpenTelemetry\API\Trace | vendor/ |
1 | ||||
SpanContextInterface | interface | OpenTelemetry\API\Trace | vendor/ |
1 | 6 | |||
SpanContextValidator | class | OpenTelemetry\API\Trace | vendor/ |
2 | ||||
SpanConverter | final class | OpenTelemetry\Contrib\Otlp | vendor/ |
|||||
SpanConverterInterface | interface | OpenTelemetry\SDK\Trace | vendor/ |
2 | 6 | |||
SpanDataInterface | interface | OpenTelemetry\SDK\Trace | vendor/ |
Represents an immutable snapshot of a { | 1 | 6 | ||
SpanExporter | final class | OpenTelemetry\Contrib\Otlp | vendor/ |
@psalm-import-type SUPPORTED_CONTENT_TYPES from ProtobufSerializer | ||||
SpanExporterDecoratorTrait | trait | OpenTelemetry\SDK\Trace\Behavior | vendor/ |
2 | ||||
SpanExporterFactory | class | OpenTelemetry\Contrib\Otlp | vendor/ |