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 |
---|---|---|---|---|---|---|---|---|
SelectorInterface | interface | Behat\Mink\Selector | vendor/ |
Mink selector engine interface. | 2 | |||
SelectorNode | class | Symfony\Component\CssSelector\Node | vendor/ |
Represents a "<selector>(::|:)<pseudoElement>" node. | 7 | |||
SelectorsHandler | class | Behat\Mink\Selector | vendor/ |
Selectors handler. | 3 | |||
SelectProfileForm | class | Drupal\Core\Installer\Form | core/ |
Provides the profile selection form. | ||||
Selenium2Driver | class | Behat\Mink\Driver | vendor/ |
Selenium2 driver. | ||||
SelfDescribing | interface | PHPUnit\Framework | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | 7 | 6 | ||
SelfMemberReferenceSniff | class | PHP_CodeSniffer\Standards\Squiz\Sniffs\Classes | vendor/ |
|||||
SelfOutTagValueNode | class | PHPStan\PhpDocParser\Ast\PhpDoc | vendor/ |
1 | ||||
SelfUpdateCommand | class | Composer\Command | vendor/ |
@author Igor Wiedler <igor@wiedler.ch> @author Kevin Ran <kran@adobe.com> @author Jordi Boggiano <j.boggiano@seld.be> | ||||
Self_ | final class | phpDocumentor\Reflection\Types | vendor/ |
Value Object representing the 'self' type. | 1 | |||
SemanticVersion | class | Drupal\Composer\Util | composer/ |
Utility methods for manipulating semantic versions. | 1 | |||
SemaphoreStore | class | Symfony\Component\Lock\Store | vendor/ |
SemaphoreStore is a PersistingStoreInterface implementation using Semaphore as store engine. | 1 | |||
SemicolonSpacingSniff | class | PHP_CodeSniffer\Standards\Squiz\Sniffs\WhiteSpace | vendor/ |
|||||
SemicolonSpacingSniff | class | PHP_CodeSniffer\Standards\Squiz\Sniffs\CSS | vendor/ |
|||||
Semver | class | Composer\Semver | vendor/ |
9 | ||||
SendEmailMessage | class | Symfony\Component\Mailer\Messenger | vendor/ |
@author Fabien Potencier <fabien@symfony.com> | 1 | |||
SendmailTransport | class | Symfony\Component\Mailer\Transport | vendor/ |
SendmailTransport for sending mail through a Sendmail/Postfix (etc..) binary. | ||||
SendmailTransportFactory | final class | Symfony\Component\Mailer\Transport | vendor/ |
@author Konstantin Myakshin <molodchick@gmail.com> | 1 | |||
SentMessage | class | Symfony\Component\Mailer | vendor/ |
@author Fabien Potencier <fabien@symfony.com> | 11 | |||
SentMessageEvent | final class | Symfony\Component\Mailer\Event | vendor/ |
@author Fabien Potencier <fabien@symfony.com> | 1 | |||
Sequence | class | Drupal\Core\Config\Schema | core/ |
Defines a configuration element of type Sequence. | 1 | 1 | ||
SequenceDataDefinition | class | Drupal\Core\Config\Schema | core/ |
A typed data definition class for defining sequences in configuration. | 3 | 1 | ||
SequenceExpression | class | Peast\Syntax\Node | vendor/ |
A node that represents a sequence of expressions. For example: a, b | ||||
Sequentially | class | Symfony\Component\Validator\Constraints | vendor/ |
Use this constraint to sequentially validate nested constraints. Validation for the nested constraints collection will stop at first violation. | 1 | |||
SequentiallyValidator | class | Symfony\Component\Validator\Constraints | vendor/ |
@author Maxime Steinhausser <maxime.steinhausser@gmail.com> | ||||
SerializableFieldsTrait | trait | Ramsey\Uuid\Fields | vendor/ |
Provides common serialization functionality to fields | 3 | |||
SerializationHooks | class | Drupal\serialization\Hook | core/ |
Hook implementations for serialization. | ||||
SerializationInterface | interface | Drupal\Component\Serialization | core/ |
Defines an interface for serialization formats. | 4 | 5 | ||
SerializationServiceProvider | class | Drupal\serialization | core/ |
Serialization dependency injection container. | ||||
Serialized | class | Drupal\views\Plugin\views\field | core/ |
Field handler to show data of serialized fields. | ||||
SerializedColumnNormalizerTrait | trait | Drupal\serialization\Normalizer | core/ |
A trait providing methods for serialized columns. | 1 | |||
SerializedName | class | Symfony\Component\Serializer\Attribute | vendor/ |
@author Fabien Bourigault <bourigaultfabien@gmail.com> | 1 | |||
SerializedPath | class | Symfony\Component\Serializer\Attribute | vendor/ |
@author Tobias Bönner <tobi@boenner.family> | 1 | |||
Serializer | class | phpDocumentor\Reflection\DocBlock | vendor/ |
Converts a DocBlock back from an object to a complete DocComment including Asterisks. | ||||
Serializer | class | Drupal\rest\Plugin\views\style | core/ |
The style plugin for serialized output formats. | ||||
Serializer | class | Symfony\Component\Serializer | vendor/ |
Serializer serializes and deserializes data. | 1 | 3 | 2 | |
Serializer | final class | Drupal\jsonapi\Serializer | core/ |
Overrides the Symfony serializer to cordon off our incompatible normalizers. | 2 | |||
SerializerAwareInterface | interface | Symfony\Component\Serializer | vendor/ |
@author Jordi Boggiano <j.boggiano@seld.be> | 10 | 10 | ||
SerializerAwareTrait | trait | Symfony\Component\Serializer | vendor/ |
@author Joel Wurtz <joel.wurtz@gmail.com> | 7 | |||
SerializerContextBuilder | final class | Symfony\Component\Serializer\Context | vendor/ |
A helper providing autocompletion for available Serializer options. | ||||
SerializerDataCollector | class | Symfony\Component\Serializer\DataCollector | vendor/ |
@author Mathias Arlaud <mathias.arlaud@gmail.com> | 3 | |||
SerializerErrorRenderer | class | Symfony\Component\ErrorHandler\ErrorRenderer | vendor/ |
Formats an exception using Serializer for rendering. | ||||
SerializerInterface | interface | Symfony\Component\Serializer | vendor/ |
@author Jordi Boggiano <j.boggiano@seld.be> | 2 | 13 | ||
SerializerPass | class | Symfony\Component\Serializer\DependencyInjection | vendor/ |
Adds all services with the tags "serializer.encoder" and "serializer.normalizer" as encoders and normalizers to the "serializer" service. | ||||
ServerBag | class | Symfony\Component\HttpFoundation | vendor/ |
ServerBag is a container for HTTP headers from the $_SERVER variable. | ||||
ServerCommand | class | Drupal\Core\Command | core/ |
Runs the PHP webserver for a Drupal site for local testing/development. | ||||
ServerDumpCommand | class | Symfony\Component\VarDumper\Command | vendor/ |
Starts a dump server to collect and output dumps on a single place with multiple formats support. | ||||
ServerDumper | class | Symfony\Component\VarDumper\Dumper | vendor/ |
ServerDumper forwards serialized Data clones to a server. | 1 | |||
ServerException | class | GuzzleHttp\Exception | vendor/ |
Exception when a server error is encountered (5xx codes) | ||||
ServerRequest | class | GuzzleHttp\Psr7 | vendor/ |
Server-side HTTP request |