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 |
---|---|---|---|---|---|---|---|---|
StatusCheckEvent | final class | Drupal\package_manager\Event | core/ |
Event fired to check the status of the system to use Package Manager. | 14 | |||
StatusCheckTrait | trait | Drupal\package_manager | core/ |
Contains helper methods to run status checks on a stage. | ||||
StatusCode | interface | OpenTelemetry\API\Trace | vendor/ |
1 | ||||
StatusCode | class | Opentelemetry\Proto\Trace\V1\Status | vendor/ |
For the semantics of status codes see https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/trace/api.md#set-status | 1 | |||
StatusCommand | class | Composer\Command | vendor/ |
@author Tiago Ribeiro <tiago.ribeiro@seegno.com> @author Rui Marinho <rui.marinho@seegno.com> | ||||
StatusData | final class | OpenTelemetry\SDK\Trace | vendor/ |
|||||
StatusDataInterface | interface | OpenTelemetry\SDK\Trace | vendor/ |
1 | 1 | |||
StatusItem | class | Drupal\user | core/ |
Defines the 'status' entity field type. | 2 | |||
StatusMessages | class | Drupal\Core\Render\Element | core/ |
Provides a messages element. | ||||
StatusReport | class | Drupal\Core\Render\Element | core/ |
Creates status report page element. | 1 | |||
StatusReportPage | class | Drupal\system\Element | core/ |
Creates status report page element. | ||||
StickyNode | class | Drupal\node\Plugin\Action | core/ |
Makes a node sticky. | ||||
Stmt | abstract class | PhpParser\Node | vendor/ |
8 | 31 | |||
StoppableEventInterface | interface | Psr\EventDispatcher | vendor/ |
An Event whose processing may be interrupted when the event has been handled. | 1 | 4 | ||
StopProceduralHookScan | class | Drupal\Core\Hook\Attribute | core/ |
Defines a StopProceduralHookScan attribute object. | 1 | |||
StopWatch | interface | PHPUnit\Event\Telemetry | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | 2 | |||
StorableConfigBase | abstract class | Drupal\Core\Config | core/ |
Provides a base class for configuration objects with storage support. | 2 | 3 | ||
StorageBase | abstract class | Drupal\Core\KeyValueStore | core/ |
Provides a base class for key/value storage implementations. | 2 | |||
StorageCacheInterface | interface | Drupal\Core\Config | core/ |
Defines an interface for cached configuration storage. | 1 | |||
StorageComparer | class | Drupal\Core\Config | core/ |
Defines a config storage comparer. | 4 | |||
StorageComparerInterface | interface | Drupal\Core\Config | core/ |
Defines an interface for comparison of configuration storage objects. | 1 | |||
StorageCopyTrait | trait | Drupal\Core\Config | core/ |
Utility trait to copy configuration from one storage to another. | ||||
StorageException | class | Drupal\Core\Config | core/ |
An exception thrown in case of storage operation errors. | 1 | |||
StorageInterface | interface | Drupal\Core\Config | core/ |
Defines an interface for configuration storage. | 12 | 28 | ||
StorageManagerInterface | interface | Drupal\Core\Config | core/ |
Interface for a storage manager. | 1 | |||
StorageReplaceDataWrapper | class | Drupal\config | core/ |
Wraps a configuration storage to allow replacing specific configuration data. | 1 | |||
StorageTransformerException | class | Drupal\Core\Config | core/ |
Thrown by config storage transformers if they cannot acquire a lock. | ||||
StorageTransformEvent | class | Drupal\Core\Config | core/ |
Class StorageTransformEvent. | 1 | |||
Store | class | Symfony\Component\HttpKernel\HttpCache | vendor/ |
Store implements all the logic for storing cache metadata (Request and Response headers). | ||||
StoreFactory | class | Symfony\Component\Lock\Store | vendor/ |
StoreFactory create stores and connections. | ||||
StoreInterface | interface | Symfony\Component\HttpKernel\HttpCache | vendor/ |
Interface implemented by HTTP cache stores. | 1 | |||
StrategyInterface | interface | Symfony\Component\Lock\Strategy | vendor/ |
StrategyInterface defines an interface to indicate when a quorum is met and can be met. | 2 | 1 | ||
StrategyUnavailableException | class | Http\Discovery\Exception | vendor/ |
This exception is thrown when we cannot use a discovery strategy. This is *not* thrown when the discovery fails to find a class. | 1 | 2 | ||
Stream | class | GuzzleHttp\Psr7 | vendor/ |
PHP stream implementation. | ||||
Stream | class | Symfony\Component\HttpFoundation\File | vendor/ |
A PHP stream of unknown size. | ||||
StreamableInputInterface | interface | Symfony\Component\Console\Input | vendor/ |
StreamableInputInterface is the interface implemented by all input classes that have an input stream. | 1 | 2 | ||
StreamCallback | abstract class | Revolt\EventLoop\Internal | vendor/ |
@internal | 2 | 3 | ||
StreamContextFactory | final class | Composer\Util | vendor/ |
Allows the creation of a basic context supporting http proxy | 2 | |||
StreamDecoratorTrait | trait | GuzzleHttp\Psr7 | vendor/ |
Stream decorator trait | ||||
StreamedJsonResponse | class | Symfony\Component\HttpFoundation | vendor/ |
StreamedJsonResponse represents a streamed HTTP response for JSON. | ||||
StreamedResponse | class | Symfony\Component\HttpFoundation | vendor/ |
StreamedResponse represents a streamed HTTP response. | 1 | 5 | ||
StreamFactory | final class | OpenTelemetry\SDK\Metrics\MetricFactory | vendor/ |
@internal | 1 | |||
StreamFactoryDiscovery | This will be removed in 2.0. Consider using Psr17FactoryDiscovery. |
final class | Http\Discovery | vendor/ |
Finds a Stream Factory. | |||
StreamFactoryInterface | interface | Psr\Http\Message | vendor/ |
2 | 12 | |||
StreamHandler | class | GuzzleHttp\Handler | vendor/ |
HTTP handler that uses PHP's HTTP stream wrapper. | 1 | |||
StreamInterface | interface | Psr\Http\Message | vendor/ |
Describes a data stream. | 12 | 28 | ||
StreamLogWriter | class | OpenTelemetry\API\Behavior\Internal\LogWriter | vendor/ |
1 | ||||
StreamMetricSource | final class | OpenTelemetry\SDK\Metrics\MetricFactory | vendor/ |
@internal | ||||
StreamMetricSourceProvider | final class | OpenTelemetry\SDK\Metrics\MetricFactory | vendor/ |
@internal | 1 | |||
StreamOutput | class | Symfony\Component\Console\Output | vendor/ |
StreamOutput writes the output to a given stream. | 2 | 2 |