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 |
---|---|---|---|---|---|---|---|---|
StateInterface | interface | Drupal\Core\State | core/ |
Defines the interface for the state system. | 1 | 54 | ||
StateInterface | interface | Drupal\workflows | core/ |
An interface for state value objects. | 2 | 8 | ||
Statement | interface | Peast\Syntax\Node | vendor/ |
Interface that every statement node must implement. | 18 | 1 | ||
Statement | class | Drupal\sqlite\Driver\Database\sqlite | core/ |
SQLite implementation of \Drupal\Core\Database\Statement. | ||||
StatementExecutionEndEvent | class | Drupal\Core\Database\Event | core/ |
Represents the end of a statement execution as an event. | 1 | 4 | ||
StatementExecutionFailureEvent | class | Drupal\Core\Database\Event | core/ |
Represents the failure of a statement execution as an event. | 2 | |||
StatementExecutionStartEvent | class | Drupal\Core\Database\Event | core/ |
Represents the start of a statement execution as an event. | 2 | |||
StatementExecutionSubscriber | class | Drupal\Core\Database\EventSubscriber | core/ |
Response subscriber to statement executions. | ||||
StatementInterface | interface | Drupal\Core\Database | core/ |
Represents a prepared statement. | 3 | 7 | ||
StatementIteratorTrait | trait | Drupal\Core\Database | core/ |
StatementInterface iterator trait. | ||||
StatementPrefetchIterator | class | Drupal\Core\Database | core/ |
An implementation of StatementInterface that prefetches all data. | 1 | 1 | ||
StatementWrapperIterator | class | Drupal\Core\Database | core/ |
StatementInterface iterator implementation. | 2 | |||
StateTransitionValidation | class | Drupal\content_moderation | core/ |
Validates whether a certain state transition is allowed. | 2 | |||
StateTransitionValidationInterface | interface | Drupal\content_moderation | core/ |
Validates whether a certain state transition is allowed. | 1 | 3 | ||
StaticAnalysisCacheNotConfiguredException | final class | SebastianBergmann\CodeCoverage | vendor/ |
3 | ||||
StaticBlock | class | Peast\Syntax\Node | vendor/ |
A node that represents a class static block | ||||
StaticCall | class | PhpParser\Node\Expr | vendor/ |
10 | ||||
StaticClosureSniff | class | SlevomatCodingStandard\Sniffs\Functions | vendor/ |
|||||
StaticDiscovery | class | Drupal\Component\Plugin\Discovery | core/ |
Allows plugin definitions to be manually registered. | 1 | |||
StaticDiscoveryDecorator | class | Drupal\Component\Plugin\Discovery | core/ |
A decorator that allows manual registration of undiscoverable definitions. | 1 | |||
StaticEnvVarLoader | class | Symfony\Component\DependencyInjection | vendor/ |
|||||
StaticMap | class | Drupal\migrate\Plugin\migrate\process | core/ |
Changes the source value based on a static lookup map. | 3 | 3 | ||
StaticMenuLinkOverrides | class | Drupal\Core\Menu | core/ |
Defines an implementation of the menu link override using a config file. | ||||
StaticMenuLinkOverridesInterface | interface | Drupal\Core\Menu | core/ |
Defines an interface for objects which overrides menu links defined in YAML. | 1 | 1 | ||
StaticMethod | This contract is totally covered by Tag contract. Every class using StaticMethod also use Tag |
interface | phpDocumentor\Reflection\DocBlock\Tags\Factory | vendor/ |
||||
StaticMethodLoader | class | Symfony\Component\Validator\Mapping\Loader | vendor/ |
Loads validation metadata by calling a static method on the loaded class. | 1 | |||
StaticNodeProvider | class | Ramsey\Uuid\Provider\Node | vendor/ |
StaticNodeProvider provides a static node value with the multicast bit set | ||||
StaticPrefixCollection | class | Symfony\Component\Routing\Matcher\Dumper | vendor/ |
Prefix tree of routes preserving routes order. | ||||
StaticPropertyFetch | class | PhpParser\Node\Expr | vendor/ |
1 | ||||
StaticReflectionClass | class | Drupal\Component\Annotation\Doctrine | core/ |
|||||
StaticReflectionParser | class | Drupal\migrate\Plugin\Discovery | core/ |
Allows getting the reflection parser for the parent class. | ||||
StaticReflectionParser | class | Drupal\Component\Annotation\Doctrine | core/ |
Parses a file for namespaces/use/class declarations. | 1 | 6 | ||
StaticServiceDeprecatedServiceRule | final class | mglaman\PHPStanDrupal\Rules\Deprecations | vendor/ |
@implements Rule<Node\Expr\StaticCall> | ||||
StaticThisUsageSniff | class | PHP_CodeSniffer\Standards\Squiz\Sniffs\Scope | vendor/ |
|||||
StaticTranslation | class | Drupal\Core\StringTranslation\Translator | core/ |
String translator with a static cache for translations. | 2 | |||
StaticTrustedCallbackHelper | class | Drupal\Core\Security | core/ |
Defines a class for performing trusted callbacks in a static context. | 2 | |||
StaticType | final class | SebastianBergmann\Type | vendor/ |
|||||
StaticVar | class | PhpParser\Node | vendor/ |
1 | ||||
Static_ | final class | phpDocumentor\Reflection\Types | vendor/ |
Value Object representing the 'static' type. | 1 | |||
Static_ | class | PhpParser\Node\Stmt | vendor/ |
|||||
StatisticsLastCommentName | class | Drupal\comment\Plugin\views\sort | core/ |
Sort handler, sorts by last comment name which can be in 2 different fields. | ||||
StatisticsLastCommentName | class | Drupal\comment\Plugin\views\field | core/ |
Field handler to present the name of the last comment poster. | ||||
StatisticsLastUpdated | class | Drupal\comment\Plugin\views\field | core/ |
Field handler to display the newer of last comment / node updated. | ||||
StatisticsLastUpdated | class | Drupal\comment\Plugin\views\sort | core/ |
Sort handler for the newer of last comment / entity updated. | ||||
StatisticsLastUpdated | class | Drupal\comment\Plugin\views\filter | core/ |
Filter handler for the newer of last comment / node updated. | ||||
Status | class | Opentelemetry\Proto\Trace\V1 | vendor/ |
The Status type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. | 1 | |||
Status | class | Composer\XdebugHandler | vendor/ |
@author John Stevenson <john-stevenson@blueyonder.co.uk> @internal | ||||
Status | class | Drupal\media\Plugin\views\filter | core/ |
Filter by published status. | ||||
Status | class | Drupal\file\Plugin\views\filter | core/ |
Filter by file status. | ||||
Status | class | Drupal\node\Plugin\views\filter | core/ |
Filter by published status. |