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 |
---|---|---|---|---|---|---|---|---|
StreamReadableCallback | final class | Revolt\EventLoop\Internal | vendor/ |
@internal | 4 | |||
StreamSelectDriver | final class | Revolt\EventLoop\Driver | vendor/ |
1 | ||||
StreamTransport | final class | OpenTelemetry\SDK\Common\Export\Stream | vendor/ |
@internal | ||||
StreamTransportFactory | final class | OpenTelemetry\SDK\Common\Export\Stream | vendor/ |
@psalm-internal \OpenTelemetry | ||||
StreamWrapper | final class | GuzzleHttp\Psr7 | vendor/ |
Converts Guzzle streams into PHP stream resources. | ||||
StreamWrapperInterface | interface | Drupal\Core\StreamWrapper | core/ |
Defines a Drupal stream wrapper extension. | 2 | 9 | ||
StreamWrapperManager | class | Drupal\Core\StreamWrapper | core/ |
Provides a StreamWrapper manager. | 15 | |||
StreamWrapperManagerInterface | interface | Drupal\Core\StreamWrapper | core/ |
Provides a StreamWrapper manager. | 1 | 17 | ||
StreamWritableCallback | final class | Revolt\EventLoop\Internal | vendor/ |
@internal | 4 | |||
StrictCallSniff | class | SlevomatCodingStandard\Sniffs\Functions | vendor/ |
|||||
StrictConfirmationQuestion | class | Composer\Question | vendor/ |
Represents a yes/no question Enforces strict responses rather than non-standard answers counting as default Based on Symfony\Component\Console\Question\ConfirmationQuestion | 1 | |||
StrictSchemaDisabledSniff | class | DrupalPractice\Sniffs\Objects | vendor/ |
Checks that $strictConfigSchema is not set to FALSE in test classes. | ||||
StrictSessionHandler | class | Symfony\Component\HttpFoundation\Session\Storage\Handler | vendor/ |
Adds basic `SessionUpdateTimestampHandlerInterface` behaviors to another `SessionHandlerInterface`. | 2 | |||
StrictTypeCheck | class | JsonSchema\Constraints\TypeCheck | vendor/ |
|||||
StrictUnifiedDiffOutputBuilder | final class | SebastianBergmann\Diff\Output | vendor/ |
Strict Unified diff output builder. | ||||
StringArgument | class | Drupal\views\Plugin\views\argument | core/ |
Argument handler for string. | 2 | 2 | ||
StringBase | abstract class | Drupal\locale | core/ |
Defines the locale string base class. | 2 | |||
StringBasedFileContent | class | org\bovigo\vfs\content | vendor/ |
Default implementation for file contents based on simple strings. | 1 | |||
StringCastUnary | final class | Twig\Node\Expression\Unary | vendor/ |
1 | ||||
StringCodec | class | Ramsey\Uuid\Codec | vendor/ |
StringCodec encodes and decodes RFC 4122 UUIDs | 4 | 1 | ||
StringConstraint | class | JsonSchema\Constraints | vendor/ |
The StringConstraint Constraints, validates an string against a given schema | ||||
StringContains | final class | PHPUnit\Framework\Constraint | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | 2 | |||
StringContainsToken | class | Prophecy\Argument\Token | vendor/ |
String contains token. | ||||
StringData | class | Drupal\Core\TypedData\Plugin\DataType | core/ |
The string data type. | 6 | 1 | 1 | |
StringDatabaseStorage | class | Drupal\locale | core/ |
Defines a class to store localized strings in the database. | 2 | |||
StringEndsWith | final class | PHPUnit\Framework\Constraint | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | 2 | |||
StringEqualsStringIgnoringLineEndings | final class | PHPUnit\Framework\Constraint | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | 2 | |||
StringFilter | class | Drupal\views\Plugin\views\filter | core/ |
Basic textfield filter to handle string filtering commands. | 1 | |||
StringFormatter | class | Drupal\Core\Field\Plugin\Field\FieldFormatter | core/ |
Plugin implementation of the 'string' formatter. | 2 | 1 | ||
StringHandler | class | Symfony\Component\CssSelector\Parser\Handler | vendor/ |
CSS selector comment handler. | ||||
StringHelper | class | SlevomatCodingStandard\Helpers | vendor/ |
@internal | 9 | |||
StringInput | class | Symfony\Component\Console\Input | vendor/ |
StringInput represents an input provided as a string. | 4 | |||
StringInputStream | since 2.4, to remove in 3.0. Use a string in the scanner instead. |
class | Masterminds\HTML5\Parser | vendor/ |
1 | |||
StringInterface | interface | Drupal\locale | core/ |
Defines the locale string interface. | 1 | |||
StringInterface | interface | Drupal\Core\TypedData\Type | core/ |
Interface for strings. | 2 | 4 | ||
StringItem | class | Drupal\Core\Field\Plugin\Field\FieldType | core/ |
Defines the 'string' entity field type. | 5 | 2 | ||
StringItemBase | abstract class | Drupal\Core\Field\Plugin\Field\FieldType | core/ |
Base class for string field types. | 2 | |||
StringKeyValue | class | Opentelemetry\Proto\Common\V1 | vendor/ |
StringKeyValue is a pair of key/value strings. This is the simpler (and faster) version of KeyValue that only supports string values. | ||||
StringListField | class | Drupal\options\Plugin\views\argument | core/ |
Argument handler for list field to show the human readable name in summary. | ||||
StringLiteral | class | Peast\Syntax\Node | vendor/ |
A node that represents a string literal. | ||||
StringLoader | class | Drupal\Core\Template\Loader | core/ |
Loads string templates, also known as inline templates. | ||||
StringLoaderExtension | final class | Twig\Extension | vendor/ |
1 | ||||
StringLongItem | class | Drupal\Core\Field\Plugin\Field\FieldType | core/ |
Defines the 'string_long' field type. | ||||
StringMatchesFormatDescription | final class | PHPUnit\Framework\Constraint | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | 2 | |||
StringStartsWith | final class | PHPUnit\Framework\Constraint | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | 2 | |||
StringStorageException | class | Drupal\locale | core/ |
Defines an exception thrown when storage operations fail. | ||||
StringStorageInterface | interface | Drupal\locale | core/ |
Defines the locale string storage interface. | 1 | 1 | ||
StringTextareaWidget | class | Drupal\Core\Field\Plugin\Field\FieldWidget | core/ |
Plugin implementation of the 'string_textarea' widget. | 1 | 1 | ||
StringTextfieldWidget | class | Drupal\Core\Field\Plugin\Field\FieldWidget | core/ |
Plugin implementation of the 'string_textfield' widget. | 2 | 2 | ||
StringTranslationTrait | trait | Drupal\Core\StringTranslation | core/ |
Wrapper methods for \Drupal\Core\StringTranslation\TranslationInterface. | 170 |