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 |
---|---|---|---|---|---|---|---|---|
StackedSessionHandlerPass | class | Drupal\Core\DependencyInjection\Compiler | core/ |
Provides a compiler pass for stacked session save handlers. | 1 | |||
StackItem | final class | Drupal\Core\Database\Transaction | core/ |
A value object for items on the transaction stack. | ||||
StackTraceFormatter | final class | OpenTelemetry\SDK\Common\Exception | vendor/ |
@psalm-type Frame = array{ function: string, class: ?class-string, file: ?string, line: ?int, } @psalm-type Frames = non-empty-list<Frame> | 1 | |||
StageBase | abstract class | Drupal\package_manager | core/ |
Creates and manages a stage directory in which to install or update code. | 7 | |||
StagedDBUpdateValidator | class | Drupal\package_manager\Validator | core/ |
Flags a warning if there are database updates in a staged update. | ||||
StageEvent | abstract class | Drupal\package_manager\Event | core/ |
Base class for all events related to the life cycle of the stage. | 5 | 2 | ||
StageEventException | class | Drupal\package_manager\Exception | core/ |
Exception thrown if an error related to an event occurs. | 1 | |||
StageException | class | Drupal\package_manager\Exception | core/ |
Base class for all exceptions related to stage operations. | 3 | 1 | ||
StageFailureMarkerException | final class | Drupal\package_manager\Exception | core/ |
Exception thrown if a stage can't be created due to an earlier failed commit. | 2 | |||
StageNotInActiveValidator | final class | Drupal\package_manager\Validator | core/ |
Validates staging root is not a subdirectory of active. | ||||
StageOwnershipException | final class | Drupal\package_manager\Exception | core/ |
Exception thrown if a stage encounters an ownership or locking error. | 1 | |||
Stager | final class | PhpTuf\ComposerStager\Internal\Core | vendor/ |
@package Core | 2 | |||
StagerInterface | interface | PhpTuf\ComposerStager\API\Core | vendor/ |
Executes a Composer command in the staging directory. | 2 | 4 | 1 | |
StagerPreconditions | final class | PhpTuf\ComposerStager\Internal\Precondition\Service | vendor/ |
@package Precondition | 2 | |||
StagerPreconditionsInterface | interface | PhpTuf\ComposerStager\API\Precondition\Service | vendor/ |
Asserts the preconditions for the stager. | 1 | 2 | ||
StagingDirDoesNotExist | final class | PhpTuf\ComposerStager\Internal\Precondition\Service | vendor/ |
@package Precondition | 2 | |||
StagingDirDoesNotExistInterface | interface | PhpTuf\ComposerStager\API\Precondition\Service | vendor/ |
Asserts that the staging directory does not exist. | 1 | 2 | ||
StagingDirExists | final class | PhpTuf\ComposerStager\Internal\Precondition\Service | vendor/ |
@package Precondition | 2 | |||
StagingDirExistsInterface | interface | PhpTuf\ComposerStager\API\Precondition\Service | vendor/ |
Asserts that the staging directory exists. | 1 | 2 | ||
StagingDirIsReady | final class | PhpTuf\ComposerStager\Internal\Precondition\Service | vendor/ |
@package Precondition | 2 | |||
StagingDirIsReadyInterface | interface | PhpTuf\ComposerStager\API\Precondition\Service | vendor/ |
Asserts that the staging directory is ready for use. | 1 | 4 | ||
StagingDirIsWritable | final class | PhpTuf\ComposerStager\Internal\Precondition\Service | vendor/ |
@package Precondition | 2 | |||
StagingDirIsWritableInterface | interface | PhpTuf\ComposerStager\API\Precondition\Service | vendor/ |
Asserts that the staging directory is writable. | 1 | 2 | ||
StagingExtension | final class | Twig\Extension | vendor/ |
Used by \Twig\Environment as a staging area. | 1 | |||
StaleElementReference | final class | WebDriver\Exception | vendor/ |
WebDriver\Exception\StaleElementReference class | 1 | |||
StalenessHandlerFactoryInterface | interface | OpenTelemetry\SDK\Metrics | vendor/ |
3 | 3 | |||
StalenessHandlerInterface | interface | OpenTelemetry\SDK\Metrics | vendor/ |
3 | 9 | |||
Standard | class | Drupal\views\Plugin\views\field | core/ |
Default implementation of the base field plugin. | ||||
Standard | class | Drupal\views\Plugin\views\sort | core/ |
Default implementation of the base sort plugin. | ||||
Standard | class | Drupal\views\Plugin\views\wizard | core/ |
Standard Views wizard plugin. | ||||
Standard | class | PhpParser\PrettyPrinter | vendor/ |
|||||
Standard | class | Drupal\views\Plugin\views\join | core/ |
Default implementation of the join plugin. | ||||
Standard | class | Drupal\views\Plugin\views\filter | core/ |
Default implementation of the base filter plugin. | ||||
Standard | class | Drupal\editor\EditorXssFilter | core/ |
Defines the standard text editor XSS filter. | ||||
Standard | class | Drupal\views\Plugin\views\relationship | core/ |
Default implementation of the base relationship plugin. | ||||
Standard | class | Drupal\views\Plugin\views\argument | core/ |
Default implementation of the base argument plugin. | ||||
Standards | class | PHP_CodeSniffer\Util | vendor/ |
3 | ||||
StandardTagFactory | final class | phpDocumentor\Reflection\DocBlock | vendor/ |
Creates a Tag object given the contents of a tag. | 2 | |||
StarbugInstaller | class | Composer\Installers | vendor/ |
|||||
Started | final class | PHPUnit\Event\TestRunner | vendor/ |
@psalm-immutable | ||||
Started | final class | PHPUnit\Event\Application | vendor/ |
@psalm-immutable | ||||
Started | final class | PHPUnit\Event\TestSuite | vendor/ |
@psalm-immutable | 8 | |||
StartedSubscriber | interface | PHPUnit\Event\Application | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | ||||
StartedSubscriber | interface | PHPUnit\Event\TestRunner | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | ||||
StartedSubscriber | interface | PHPUnit\Event\TestSuite | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | 4 | 4 | ||
StarterKit | final class | Drupal\starterkit_theme | core/ |
|||||
StarterKitInterface | interface | Drupal\Core\Theme | core/ |
Allows starter kits to interact with theme generation. | 1 | 2 | ||
StartsWithBinary | class | Twig\Node\Expression\Binary | vendor/ |
1 | ||||
State | class | Drupal\Core\State | core/ |
Provides the state system using a key value store. | ||||
State | class | Drupal\workflows | core/ |
A value object representing a workflow state. | 6 |