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 |
---|---|---|---|---|---|---|---|---|
DuplicatePropertySniff | class | PHP_CodeSniffer\Standards\Squiz\Sniffs\Classes | vendor/ |
|||||
DuplicateSpacesSniff | class | SlevomatCodingStandard\Sniffs\Whitespaces | vendor/ |
|||||
DuplicateStyleDefinitionSniff | class | PHP_CodeSniffer\Standards\Squiz\Sniffs\CSS | vendor/ |
|||||
Duration | class | Google\Protobuf | vendor/ |
A Duration represents a signed, fixed-length span of time represented as a count of seconds and fractions of seconds at nanosecond resolution. It is independent of any calendar and concepts like "day" or "month". It is related to… | 1 | |||
Duration | class | GPBMetadata\Google\Protobuf | vendor/ |
|||||
Duration | final class | PHPUnit\Event\Telemetry | vendor/ |
@psalm-immutable | ||||
Duration | final class | SebastianBergmann\Timer | vendor/ |
@psalm-immutable | 1 | |||
DurationInterface | interface | Drupal\Core\TypedData\Type | core/ |
Interface for durations. | 2 | 3 | ||
DurationIso8601 | class | Drupal\Core\TypedData\Plugin\DataType | core/ |
The duration ISO8601 data type. | ||||
DvcsDownloaderInterface | interface | Composer\Downloader | vendor/ |
DVCS Downloader interface. | 1 | 1 | ||
DynamicallyFieldableEntityStorageInterface | interface | Drupal\Core\Entity | core/ |
A storage that supports entity types with dynamic field definitions. | 1 | 2 | ||
DynamicallyFieldableEntityStorageSchemaInterface | interface | Drupal\Core\Entity\Schema | core/ |
A storage schema that supports entity types with dynamic field definitions. | 2 | 3 | ||
DynamicEntityTypeParamConverterTrait | trait | Drupal\Core\ParamConverter | core/ |
Provides a trait to replace dynamic entity types in routes. | ||||
DynamicLocalTasks | class | Drupal\media\Plugin\Derivative | core/ |
Generates media-related local tasks. | 1 | |||
DynamicLocalTasks | class | Drupal\content_moderation\Plugin\Derivative | core/ |
Generates moderation-related local tasks. | 1 | |||
DynamicPageCacheHooks | class | Drupal\dynamic_page_cache\Hook | core/ |
Hook implementations for dynamic_page_cache. | ||||
DynamicPageCacheSubscriber | class | Drupal\dynamic_page_cache\EventSubscriber | core/ |
Returns cached responses as early and avoiding as much work as possible. | 2 | |||
DynamicPluginConfigWithCsrfTokenUrlTrait | trait | Drupal\ckeditor5\Plugin\CKEditor5Plugin | core/ |
Provides a trait for CKEditor 5 with dynamically generated CSRF token URLs. | ||||
Each | final class | GuzzleHttp\Promise | vendor/ |
|||||
EachPromise | class | GuzzleHttp\Promise | vendor/ |
Represents a promise that iterates over many promises and invokes side-effect functions in the process. | 1 | |||
EarlyExitSniff | class | SlevomatCodingStandard\Sniffs\ControlStructures | vendor/ |
|||||
EarlyFormatSetter | final class | Drupal\jsonapi\Routing | core/ |
Sets the 'api_json' format for requests to JSON:API resources. | 2 | |||
EarlyRenderingControllerWrapperSubscriber | class | Drupal\Core\EventSubscriber | core/ |
Subscriber that wraps controllers, to handle early rendering. | ||||
EasyHandle | final class | GuzzleHttp\Handler | vendor/ |
Represents a cURL easy handle and the data it populates. | ||||
EchoedStringsSniff | class | PHP_CodeSniffer\Standards\Squiz\Sniffs\Strings | vendor/ |
|||||
Echo_ | class | PhpParser\Node\Stmt | vendor/ |
|||||
EditDetails | class | Drupal\views_ui\Form\Ajax | core/ |
Provides a form for editing the details of a View. | ||||
Editor | class | Drupal\editor\Annotation | core/ |
Defines an Editor annotation object. | ||||
Editor | class | Drupal\editor\Attribute | core/ |
Defines an Editor attribute object. | 2 | |||
Editor | class | Drupal\editor\Entity | core/ |
Defines the configured text editor entity. | 10 | |||
EditorAccessControlHandler | class | Drupal\editor | core/ |
Defines the access control handler for the text editor entity type. | 1 | |||
EditorBase | abstract class | Drupal\editor\Plugin | core/ |
Defines a base class from which other modules providing editors may extend. | 1 | 1 | ||
EditorConfigTranslationSubscriber | class | Drupal\editor\EventSubscriber | core/ |
Adds configuration names to configuration mapper on POPULATE_MAPPER event. | 2 | |||
EditorController | class | Drupal\editor | core/ |
Returns responses for Editor module routes. | ||||
EditorDialogSave | class | Drupal\editor\Ajax | core/ |
Provides an AJAX command for saving the contents of an editor dialog. | 1 | |||
EditorFileReference | class | Drupal\editor\Plugin\Filter | core/ |
Provides a filter to track images uploaded via a Text Editor. | ||||
EditorHooks | class | Drupal\editor\Hook | core/ |
Hook implementations for editor. | ||||
EditorialContentEntityBase | abstract class | Drupal\Core\Entity | core/ |
Provides a base entity class with extended revision and publishing support. | 5 | 5 | ||
EditorInterface | interface | Drupal\editor | core/ |
Provides an interface defining a text editor entity. | 1 | 22 | ||
EditorManager | class | Drupal\editor\Plugin | core/ |
Configurable text editor manager. | 2 | |||
EditorPluginInterface | interface | Drupal\editor\Plugin | core/ |
Defines an interface for configurable text editors. | 1 | 1 | ||
EditorXssFilterInterface | interface | Drupal\editor | core/ |
Defines an interface for text editor XSS (Cross-site scripting) filters. | 1 | 1 | ||
EightBitContentEncoder | final class | Symfony\Component\Mime\Encoder | vendor/ |
@author Fabien Potencier <fabien@symfony.com> | 1 | |||
Element | interface | phpDocumentor\Reflection | vendor/ |
Interface for Api Elements | ||||
Element | class | WebDriver | vendor/ |
WebDriver\Element class | 1 | 1 | ||
Element | abstract class | Drupal\Core\Config\Schema | core/ |
Defines a generic configuration element. | 3 | |||
Element | class | Drupal\Core\Render | core/ |
Provides helper methods for Drupal render elements. | 105 | |||
Element | class | Drupal\editor | core/ |
Defines a service for Text Editor's render elements. | 2 | |||
Element | abstract class | Behat\Mink\Element | vendor/ |
Base element. | 1 | 3 | ||
ElementClickIntercepted | final class | WebDriver\Exception | vendor/ |
WebDriver\Exception\ElementClickIntercepted class |