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 |
---|---|---|---|---|---|---|---|---|
SpanExporterFactoryInterface | interface | OpenTelemetry\SDK\Trace\SpanExporter | vendor/ |
3 | 2 | |||
SpanExporterInterface | interface | OpenTelemetry\SDK\Trace | vendor/ |
5 | 13 | |||
SpanExporterTrait | trait | OpenTelemetry\SDK\Trace\Behavior | vendor/ |
2 | ||||
SpanFlags | class | Opentelemetry\Proto\Trace\V1 | vendor/ |
SpanFlags represents constants used to interpret the Span.flags field, which is protobuf 'fixed32' type and is to be used as bit-fields. Each non-zero value defined in this enum is a bit-mask. To extract the bit-field, for example, use⦠| 1 | |||
SpanInterface | interface | OpenTelemetry\API\Trace | vendor/ |
1 | ||||
SpanishInflector | final class | Symfony\Component\String\Inflector | vendor/ |
|||||
SpanKind | interface | OpenTelemetry\API\Trace | vendor/ |
4 | ||||
SpanKind | class | Opentelemetry\Proto\Trace\V1\Span | vendor/ |
SpanKind is the type of span. Can be used to specify additional relationships between spans in addition to a parent/child relationship. | 1 | |||
SpanLimits | final class | OpenTelemetry\SDK\Trace | vendor/ |
|||||
SpanLimitsBuilder | class | OpenTelemetry\SDK\Trace | vendor/ |
|||||
SpanProcessorFactory | class | OpenTelemetry\SDK\Trace | vendor/ |
1 | ||||
SpanProcessorInterface | interface | OpenTelemetry\SDK\Trace | vendor/ |
@see https://github.com/open-telemetry/opentelemetry-specification/blob/v1.6.1/specification/trace/sdk.md#span-processor | 4 | 4 | ||
SpdxLicenses | class | Composer\Spdx | vendor/ |
4 | ||||
SpecialAttributesRouteSubscriber | class | Drupal\Core\EventSubscriber | core/ |
Provides a route subscriber which checks for invalid pattern variables. | ||||
Specificity | class | Symfony\Component\CssSelector\Node | vendor/ |
Represents a node specificity. | ||||
SpecificityAdjustmentNode | class | Symfony\Component\CssSelector\Node | vendor/ |
Represents a "<selector>:where(<subSelectorList>)" node. | ||||
SpecificMajorAndMinorVersionConstraint | class | PharIo\Version | vendor/ |
|||||
SpecificMajorVersionConstraint | class | PharIo\Version | vendor/ |
|||||
SplCaster | class | Symfony\Component\VarDumper\Caster | vendor/ |
Casts SPL related classes to array representation. | ||||
SplDoublyLinkedList | Use { |
class | DeepCopy\TypeFilter\Spl | vendor/ |
||||
SplDoublyLinkedListFilter | class | DeepCopy\TypeFilter\Spl | vendor/ |
@final | 1 | 1 | ||
SplFileInfo | class | Symfony\Component\Finder | vendor/ |
Extends \SplFileInfo to support relative paths. | 1 | 5 | ||
SplFileInfoPatch | class | Prophecy\Doubler\ClassPatch | vendor/ |
SplFileInfo patch. Makes SplFileInfo and derivative classes usable with Prophecy. | ||||
SplObjectStorageComparator | final class | SebastianBergmann\Comparator | vendor/ |
|||||
SpoofCheckValidation | class | Egulias\EmailValidator\Validation\Extra | vendor/ |
|||||
SpoofEmail | class | Egulias\EmailValidator\Result\Reason | vendor/ |
1 | ||||
SpoofEmail | class | Egulias\EmailValidator\Result | vendor/ |
1 | ||||
SpreadElement | class | Peast\Syntax\Node | vendor/ |
A node that represents the spread element in array literals or function calls. For example "...params" in: test(...params) | 1 | 1 | ||
SpreadOperatorSpacingAfterSniff | class | PHP_CodeSniffer\Standards\Generic\Sniffs\WhiteSpace | vendor/ |
|||||
SpreadOperatorSpacingSniff | class | SlevomatCodingStandard\Sniffs\Operators | vendor/ |
|||||
SpreadUnary | final class | Twig\Node\Expression\Unary | vendor/ |
2 | ||||
Sql | class | Drupal\migrate\Plugin\migrate\id_map | core/ |
Defines the sql based ID map implementation. | 1 | |||
Sql | class | Drupal\views\Plugin\views\query | core/ |
Views query plugin for an SQL query. | 2 | |||
SqlBase | abstract class | Drupal\views\Plugin\views\pager | core/ |
A common base class for sql based pager. | 2 | |||
SqlBase | abstract class | Drupal\migrate\Plugin\migrate\source | core/ |
Sources whose data may be fetched via a database connection. | 1 | 1 | ||
SqlContentEntityStorage | class | Drupal\Core\Entity\Sql | core/ |
A content entity database storage implementation. | 8 | 13 | ||
SqlContentEntityStorageException | class | Drupal\Core\Entity\Sql | core/ |
Exception thrown when a SQL storage operation fails. | ||||
SqlContentEntityStorageSchema | class | Drupal\Core\Entity\Sql | core/ |
Defines a schema handler that supports revisionable, translatable entities. | 9 | 9 | ||
SqlEntityStorageInterface | interface | Drupal\Core\Entity\Sql | core/ |
A common interface for SQL-based entity storage implementations. | 1 | 2 | ||
SqlFieldableEntityTypeListenerTrait | trait | Drupal\Core\Entity\Sql | core/ |
Helper methods for EntityTypeListenerInterface. | ||||
SqliteDatabaseExcluder | class | Drupal\package_manager\PathExcluder | core/ |
Excludes SQLite database files from stage operations. | ||||
SqliteDateSql | class | Drupal\views\Plugin\views\query | core/ |
SQLite-specific date handling. | 2 | |||
SqliteHooks | class | Drupal\sqlite\Hook | core/ |
Hook implementations for sqlite. | ||||
SSH | class | Drupal\Core\FileTransfer | core/ |
The SSH connection class for the update module. | ||||
Ssi | class | Symfony\Component\HttpKernel\HttpCache | vendor/ |
Ssi implements the SSI capabilities to Request and Response instances. | ||||
SsiFragmentRenderer | class | Symfony\Component\HttpKernel\Fragment | vendor/ |
Implements the SSI rendering strategy. | ||||
StabilityFilter | class | Composer\Package\Version | vendor/ |
@author Jordi Boggiano <j.boggiano@seld.be> | 4 | |||
StackedHttpKernel | class | Drupal\Core\StackMiddleware | core/ |
Provides a stacked HTTP kernel. | 1 | |||
StackedKernelPass | class | Drupal\Core\DependencyInjection\Compiler | core/ |
Provides a compiler pass for stacked HTTP kernels. | 1 | |||
StackedRouteMatchInterface | interface | Drupal\Core\Routing | core/ |
Defines an interface for a stack of route matches. | 1 | 3 |