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 |
---|---|---|---|---|---|---|---|---|
SessionExistsCacheContext | class | Drupal\Core\Cache\Context | core/ |
Defines the SessionExistsCacheContext service, for "session or not" caching. | ||||
SessionFactory | class | Symfony\Component\HttpFoundation\Session | vendor/ |
@author Jérémy Derussé <jeremy@derusse.com> | ||||
SessionFactoryInterface | interface | Symfony\Component\HttpFoundation\Session | vendor/ |
@author Kevin Bond <kevinbond@gmail.com> | 1 | |||
SessionHandler | class | Drupal\Core\Session | core/ |
Default session handler. | ||||
SessionHandlerFactory | class | Symfony\Component\HttpFoundation\Session\Storage\Handler | vendor/ |
@author Nicolas Grekas <p@tchwork.com> | ||||
SessionHandlerProxy | class | Symfony\Component\HttpFoundation\Session\Storage\Proxy | vendor/ |
@author Drak <drak@zikula.org> | 1 | |||
SessionInterface | interface | Symfony\Component\HttpFoundation\Session | vendor/ |
Interface for the session. | 1 | 11 | ||
SessionListener | class | Symfony\Component\HttpKernel\EventListener | vendor/ |
Sets the session in the request. | ||||
SessionManager | class | Drupal\Core\Session | core/ |
Manages user sessions. | ||||
SessionManagerInterface | interface | Drupal\Core\Session | core/ |
Defines the session manager interface. | 1 | |||
SessionNotCreated | final class | WebDriver\Exception | vendor/ |
WebDriver\Exception\SessionNotCreated class | ||||
SessionNotFoundException | class | Symfony\Component\HttpFoundation\Exception | vendor/ |
Raised when a session does not exist. This happens in the following cases: | 2 | |||
SessionStorageFactoryInterface | interface | Symfony\Component\HttpFoundation\Session\Storage | vendor/ |
@author Jérémy Derussé <jeremy@derusse.com> | 3 | 1 | ||
SessionStorageInterface | interface | Symfony\Component\HttpFoundation\Session\Storage | vendor/ |
StorageInterface. | 3 | 2 | ||
SessionUtils | final class | Symfony\Component\HttpFoundation\Session | vendor/ |
Session utility functions. | 2 | |||
SessionValueResolver | final class | Symfony\Component\HttpKernel\Controller\ArgumentResolver | vendor/ |
Yields the Session. | 1 | |||
SessionWorkspaceNegotiator | class | Drupal\workspaces\Negotiator | core/ |
Defines the session workspace negotiator. | 1 | 2 | ||
Set | class | Ramsey\Collection | vendor/ |
A set is a collection that contains no duplicate elements. | ||||
SetCookie | class | GuzzleHttp\Cookie | vendor/ |
Set-Cookie object | ||||
SetCustomize | class | Drupal\shortcut\Form | core/ |
Builds the shortcut set customize form. | 1 | |||
SetDialogOptionCommand | class | Drupal\Core\Ajax | core/ |
Defines an AJAX command that sets jQuery UI dialog properties. | 1 | |||
SetDialogTitleCommand | class | Drupal\Core\Ajax | core/ |
Defines an AJAX command that sets jQuery UI dialog properties. | ||||
SetFormCommand | class | Drupal\views_ui\Ajax | core/ |
Provides an AJAX command for setting a form submit URL in modal forms. | 1 | |||
SetInlineBlockDependency | class | Drupal\layout_builder\EventSubscriber | core/ |
An event subscriber that returns an access dependency for inline blocks. | 1 | |||
SetNode | class | Twig\Node | vendor/ |
Represents a set node. | 3 | |||
SetNullFilter | class | DeepCopy\Filter | vendor/ |
@final | ||||
SetSubtreesCommand | class | Drupal\toolbar\Ajax | core/ |
Defines an AJAX command that sets the toolbar subtrees. | 1 | |||
Settings | final class | Drupal\Core\Site | core/ |
Read only settings that are initialized with the class. | 84 | |||
SettingsCommand | class | Drupal\Core\Ajax | core/ |
AJAX command for adjusting Drupal's JavaScript settings. | ||||
SettingsEditor | final class | Drupal\Core\Site | core/ |
Generates settings.php files for Drupal installations. | 2 | |||
SettingsForm | class | Drupal\media_library\Form | core/ |
Defines a form for configuring the Media Library module. | 1 | |||
SettingsForm | final class | Drupal\navigation\Form | core/ |
Configure Navigation settings for this site. | 1 | |||
SettingsTrayHooks | class | Drupal\settings_tray\Hook | core/ |
Hook implementations for settings_tray. | ||||
SettingsValidator | final class | Drupal\package_manager\Validator | core/ |
Checks that Drupal's settings are valid for Package Manager. | ||||
SetTokenParser | final class | Twig\TokenParser | vendor/ |
Defines a variable. | 1 | |||
SeverityNumber | class | Opentelemetry\Proto\Logs\V1 | vendor/ |
Possible values for LogRecord.SeverityNumber. | ||||
Shadow | by W3C WebDriver |
class | WebDriver | vendor/ |
WebDriver\Shadow class | |||
ShallowCopyFilter | class | DeepCopy\TypeFilter | vendor/ |
@final | ||||
ShapeItem | abstract class | phpDocumentor\Reflection\PseudoTypes | vendor/ |
2 | ||||
SharedLockInterface | interface | Symfony\Component\Lock | vendor/ |
SharedLockInterface defines an interface to manipulate the status of a shared lock. | 2 | |||
SharedLockStoreInterface | interface | Symfony\Component\Lock | vendor/ |
@author Jérémy Derussé <jeremy@derusse.com> | 5 | 6 | ||
SharedTempStore | class | Drupal\Core\TempStore | core/ |
Stores and retrieves temporary data for a given owner. | 1 | |||
SharedTempStoreFactory | class | Drupal\Core\TempStore | core/ |
Creates a shared temporary storage for a collection. | 7 | |||
ShareTrait | trait | Symfony\Component\DependencyInjection\Loader\Configurator\Traits | vendor/ |
|||||
ShellExec | class | PhpParser\Node\Expr | vendor/ |
|||||
ShellExitCodeCalculator | final class | PHPUnit\TextUI | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | ||||
ShiftLeft | class | PhpParser\Node\Expr\AssignOp | vendor/ |
|||||
ShiftLeft | class | PhpParser\Node\Expr\BinaryOp | vendor/ |
|||||
ShiftRight | class | PhpParser\Node\Expr\AssignOp | vendor/ |
|||||
ShiftRight | class | PhpParser\Node\Expr\BinaryOp | vendor/ |