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 |
---|---|---|---|---|---|---|---|---|
StringUnescaper | class | PHPStan\PhpDocParser\Parser | vendor/ |
|||||
StringUtil | class | Prophecy\Util | vendor/ |
String utility. | 8 | |||
StringValue | class | phpDocumentor\Reflection\PseudoTypes | vendor/ |
@psalm-immutable | 1 | |||
StringValue | class | Google\Protobuf | vendor/ |
Wrapper message for `string`. The JSON representation for `StringValue` is JSON string. | ||||
String_ | class | PhpParser\Node\Expr\Cast | vendor/ |
|||||
String_ | class | phpDocumentor\Reflection\Types | vendor/ |
Value Object representing the type 'string'. | 9 | 10 | ||
String_ | class | PhpParser\Node\Scalar | vendor/ |
5 | ||||
Struct | class | GPBMetadata\Google\Protobuf | vendor/ |
|||||
Struct | class | Google\Protobuf | vendor/ |
`Struct` represents a structured data value, consisting of fields which map to dynamically typed values. In some languages, `Struct` might be supported by a native representation. For example, in scripting languages like JS a struct is represented as… | 1 | |||
Stub | interface | PHPUnit\Framework\MockObject\Stub | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | 8 | 4 | ||
Stub | interface | PHPUnit\Framework\MockObject\Builder | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | 1 | |||
Stub | interface | PHPUnit\Framework\MockObject | vendor/ |
@method InvocationStubber method($constraint) | 2 | 4 | ||
Stub | class | Symfony\Component\VarDumper\Cloner | vendor/ |
Represents the main properties of a PHP variable. | 6 | 40 | ||
StubApi | trait | PHPUnit\Framework\MockObject | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | 1 | |||
StubCaster | class | Symfony\Component\VarDumper\Caster | vendor/ |
Casts a caster's Stub. | ||||
StubInternal | interface | PHPUnit\Framework\MockObject | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | 1 | 1 | ||
Style | class | Drupal\ckeditor5\Plugin\CKEditor5Plugin | core/ |
CKEditor 5 Style plugin configuration. | 1 | 1 | ||
StyleInterface | interface | Symfony\Component\Console\Style | vendor/ |
Output style helpers. | 1 | 1 | ||
StylePluginBase | abstract class | Drupal\views\Plugin\views\style | core/ |
Base class for views style plugins. | 11 | 1 | 1 | |
StyleSensibleElementConstraint | class | Drupal\ckeditor5\Plugin\Validation\Constraint | core/ |
Styles can only be specified for HTML5 tags and extra classes. | ||||
StyleSensibleElementConstraintValidator | class | Drupal\ckeditor5\Plugin\Validation\Constraint | core/ |
Styles can only be specified for HTML5 tags and extra classes. | ||||
SubBinary | class | Twig\Node\Expression\Binary | vendor/ |
1 | ||||
SubformState | class | Drupal\Core\Form | core/ |
Stores information about the state of a subform. | 17 | |||
SubformStateInterface | interface | Drupal\Core\Form | core/ |
Stores information about the state of a subform. | 1 | 3 | ||
Submit | class | Drupal\Core\Render\Element | core/ |
Provides a form submit button. | 1 | |||
SubProcess | class | Drupal\migrate\Plugin\migrate\process | core/ |
Runs an array of arrays through its own process pipeline. | ||||
Subquery | class | Drupal\views\Plugin\views\join | core/ |
Join handler for relationships that join with a subquery as the left field. | ||||
SubRequestHandler | class | Symfony\Component\HttpKernel\HttpCache | vendor/ |
@author Nicolas Grekas <p@tchwork.com> | 1 | |||
SubscribableDispatcher | interface | PHPUnit\Event | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | 2 | |||
SubscribedService | final class | Symfony\Contracts\Service\Attribute | vendor/ |
For use as the return value for { @example new SubscribedService('http_client', HttpClientInterface::class, false, new Target('githubApi')) | 5 | |||
Subscriber | abstract class | PHPUnit\TestRunner\TestResult | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | 24 | |||
Subscriber | abstract class | PHPUnit\Logging\TestDox | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | 17 | |||
Subscriber | interface | PHPUnit\Event | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | 71 | 72 | ||
Subscriber | abstract class | PHPUnit\Runner\ResultCache | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | 9 | |||
Subscriber | abstract class | PHPUnit\Runner\GarbageCollection | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | 3 | |||
Subscriber | abstract class | PHPUnit\Logging\JUnit | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | 11 | |||
Subscriber | abstract class | PHPUnit\TextUI\Output\Default\ProgressPrinter | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | 18 | |||
Subscriber | abstract class | PHPUnit\Runner\Baseline | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | 6 | |||
Subscriber | abstract class | PHPUnit\Logging\TeamCity | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | 10 | |||
SubscriberTypeAlreadyRegisteredException | final class | PHPUnit\Event | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | ||||
Substr | class | Drupal\migrate\Plugin\migrate\process | core/ |
Returns a substring of the input value. | ||||
SubversionPropertiesSniff | class | PHP_CodeSniffer\Standards\Generic\Sniffs\VersionControl | vendor/ |
|||||
Success | final class | PHPUnit\Framework\TestStatus | vendor/ |
@psalm-immutable | ||||
Success | final class | SebastianBergmann\CodeCoverage\Test\TestStatus | vendor/ |
@psalm-immutable | ||||
SuccessfulSchemaDetectionResult | final class | PHPUnit\TextUI\XmlConfiguration | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | ||||
SuggestedPackagesReporter | class | Composer\Installer | vendor/ |
Add suggested packages from different places to output them in the end. | 3 | |||
Suggestion | class | Symfony\Component\Console\Completion | vendor/ |
Represents a single suggested value. | 7 | |||
SuggestsCommand | class | Composer\Command | vendor/ |
|||||
Sum | final class | OpenTelemetry\SDK\Metrics\Data | vendor/ |
|||||
Sum | class | Opentelemetry\Proto\Metrics\V1 | vendor/ |
Sum represents the type of a scalar metric that is calculated as a sum of all reported measurements over a time interval. | 1 |