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 |
---|---|---|---|---|---|---|---|---|
ShopwareInstaller | class | Composer\Installers | vendor/ |
Plugin/theme installer for shopware @author Benjamin Boit | ||||
Shortcut | class | Drupal\shortcut\Plugin\migrate\source\d7 | core/ |
Drupal 7 shortcut links source from database. | ||||
Shortcut | class | Drupal\shortcut\Entity | core/ |
Defines the shortcut entity class. | 2 | |||
ShortcutAccessControlHandler | class | Drupal\shortcut | core/ |
Defines the access control handler for the shortcut entity type. | 1 | |||
ShortcutController | class | Drupal\shortcut\Controller | core/ |
Provides route responses for taxonomy.module. | ||||
ShortcutDeleteForm | class | Drupal\shortcut\Form | core/ |
Builds the shortcut link deletion form. | 1 | |||
ShortcutForm | class | Drupal\shortcut | core/ |
Form handler for the shortcut entity forms. | 1 | |||
ShortcutHooks | class | Drupal\shortcut\Hook | core/ |
Hook implementations for shortcut. | ||||
ShortcutInterface | interface | Drupal\shortcut | core/ |
Provides an interface defining a shortcut entity. | 1 | 2 | ||
ShortcutLazyBuilder | final class | Drupal\navigation | core/ |
Lazy Builders for Navigation shortcuts links. | ||||
ShortcutLazyBuilders | class | Drupal\shortcut | core/ |
Lazy builders for the shortcut module. | 1 | 2 | ||
ShortcutsBlock | class | Drupal\shortcut\Plugin\Block | core/ |
Provides a 'Shortcut' block. | ||||
ShortcutSet | class | Drupal\shortcut\Plugin\migrate\source\d7 | core/ |
Drupal 7 shortcut_set source from database. | ||||
ShortcutSet | class | Drupal\shortcut\Entity | core/ |
Defines the Shortcut set configuration entity. | 1 | |||
ShortcutSetAccessControlHandler | class | Drupal\shortcut | core/ |
Defines the access control handler for the shortcut set entity type. | 1 | |||
ShortcutSetController | class | Drupal\shortcut\Controller | core/ |
Builds the page for administering shortcut sets. | ||||
ShortcutSetDeleteForm | class | Drupal\shortcut\Form | core/ |
Builds the shortcut set deletion form. | 1 | |||
ShortcutSetForm | class | Drupal\shortcut | core/ |
Form handler for the shortcut set entity edit forms. | 1 | |||
ShortcutSetInterface | interface | Drupal\shortcut | core/ |
Provides an interface defining a shortcut set entity. | 1 | 4 | ||
ShortcutSetListBuilder | class | Drupal\shortcut | core/ |
Defines a class to build a listing of shortcut set entities. | 1 | |||
ShortcutSetStorage | class | Drupal\shortcut | core/ |
Defines a storage for shortcut_set entities. | 1 | |||
ShortcutSetStorageInterface | interface | Drupal\shortcut | core/ |
Defines an interface for shortcut_set entity storage classes. | 1 | 3 | ||
ShortcutSetUsers | class | Drupal\shortcut\Plugin\migrate\source\d7 | core/ |
Drupal 7 shortcut_set_users source from database. | ||||
ShortcutSetUsers | class | Drupal\shortcut\Plugin\migrate\destination | core/ |
Migration destination for shortcut_set_users. | ||||
ShortFormTypeKeywordsSniff | class | PHP_CodeSniffer\Standards\PSR12\Sniffs\Keywords | vendor/ |
|||||
ShorthandSizeSniff | class | PHP_CodeSniffer\Standards\Squiz\Sniffs\CSS | vendor/ |
|||||
ShortListSniff | class | SlevomatCodingStandard\Sniffs\PHP | vendor/ |
|||||
ShouldCallParentMethodsRule | class | PHPStan\Rules\PHPUnit | vendor/ |
@implements Rule<InClassMethodNode> | ||||
ShowButtonsCommand | class | Drupal\views\Ajax | core/ |
Provides an AJAX command for showing the save and cancel buttons. | 1 | |||
ShowCommand | class | Composer\Command | vendor/ |
@author Robert Schönthal <seroscho@googlemail.com> @author Jordi Boggiano <j.boggiano@seld.be> @author Jérémy Romey <jeremyFreeAgent> @author Mihai Plasoianu <mihai@plasoianu.de> | ||||
ShowHelpCommand | final class | PHPUnit\TextUI\Command | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | 1 | |||
ShowVersionCommand | final class | PHPUnit\TextUI\Command | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | 1 | |||
ShutdownHandler | final class | OpenTelemetry\SDK\Common\Util | vendor/ |
3 | ||||
SideEffectsSniff | class | PHP_CodeSniffer\Standards\PSR1\Sniffs\Files | vendor/ |
|||||
SignalableCommandInterface | interface | Symfony\Component\Console\Command | vendor/ |
Interface for command reacting to signal. | 1 | 1 | ||
SignalCallback | final class | Revolt\EventLoop\Internal | vendor/ |
@internal | 4 | |||
SignalHandler | final class | Seld\Signal | vendor/ |
SignalHandler and factory | 4 | |||
SignalMap | class | Symfony\Component\Console\SignalRegistry | vendor/ |
@author Grégoire Pineau <lyrixx@lyrixx.info> | 1 | |||
SignalRegistry | final class | Symfony\Component\Console\SignalRegistry | vendor/ |
1 | ||||
Signals | interface | OpenTelemetry\API | vendor/ |
6 | ||||
SilencedErrorContext | class | Symfony\Component\ErrorHandler\Exception | vendor/ |
Data Object that represents a Silenced Error. | 4 | |||
Silencer | class | Composer\Util | vendor/ |
Temporarily suppress PHP error reporting, usually warnings and below. | 14 | |||
SilverStripeInstaller | class | Composer\Installers | vendor/ |
|||||
SimpleAnnotationReader | final class | Drupal\Component\Annotation\Doctrine | core/ |
Simple Annotation Reader. | 2 | |||
SimpleConfigUpdate | final class | Drupal\Core\Config\Action\Plugin\ConfigAction | core/ |
@internal This API is experimental. | ||||
SimpleLogRecordProcessor | class | OpenTelemetry\SDK\Logs\Processor | vendor/ |
1 | ||||
SimplePageVariant | class | Drupal\Core\Render\Plugin\DisplayVariant | core/ |
Provides a page display variant that simply renders the main content. | ||||
SimplePsrFileLogger | class | OpenTelemetry\SDK\Logs | vendor/ |
|||||
SimpleSpanProcessor | class | OpenTelemetry\SDK\Trace\SpanProcessor | vendor/ |
1 | ||||
SimpletestTestRunResultsStorage | class | Drupal\Core\Test | core/ |
Implements a test run results storage compatible with legacy Simpletest. |