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
Name | Type | Namespace | Location | Description | Direct uses | Use statements | Strings |
---|---|---|---|---|---|---|---|
CacheBackendInterface | interface |
Drupal\ |
core/ |
Defines an interface for cache implementations. | 5 | 88 | 27 |
ViewsPluginManager | class |
Drupal\ |
core/ |
Plugin type manager for all views plugins. | 3 | 13 | |
Attribute | class |
Drupal\ |
core/ |
Collects, sanitizes, and renders HTML attributes. | 1 | 33 | 10 |
FieldMigration | class |
Drupal\ |
core/ |
Migration plugin class for migrations dealing with field config and values. | 2 | 2 | 9 |
ViewsHandlerManager | class |
Drupal\ |
core/ |
Plugin type manager for all views handlers. | 3 | 8 | |
VariationCacheInterface | interface |
Drupal\ |
core/ |
Defines an interface for variation cache implementations. | 3 | 7 | |
ServiceWithDependency | class |
Drupal\ |
core/ |
Service that gets the other service of the same module injected. | 6 | ||
D7NodeDeriver | class |
Drupal\ |
core/ |
Deriver for Drupal 7 node and node revision migrations based on node types. | 5 | ||
Service | class |
Drupal\ |
core/ |
A service that can decorated itself. | 5 | ||
BackendChain | class |
Drupal\ |
core/ |
Defines a chained cache implementation for combining multiple cache backends. | 2 | 4 | |
NullBackendFactory | class |
Drupal\ |
core/ |
1 | 4 | ||
LocalTaskDefault | class |
Drupal\ |
core/ |
Default object used for LocalTaskPlugins. | 6 | 6 | 4 |
ChainResponsePolicy | class |
Drupal\ |
core/ |
Implements a compound response policy. | 1 | 4 | |
JsonEncoder | class |
Drupal\ |
core/ |
Adds 'ajax' to the supported content types of the JSON encoder. | 1 | 4 | 4 |
MemoryCache | class |
Drupal\ |
core/ |
Defines a memory cache implementation. | 3 | 4 | |
D6NodeDeriver | class |
Drupal\ |
core/ |
Deriver for Drupal 6 node and node revision migrations based on node types. | 4 | ||
TestServiceDecorator | class |
Drupal\ |
core/ |
1 | 4 | ||
MemoryCacheInterface | interface |
Drupal\ |
core/ |
Defines an interface for memory cache implementations. | 1 | 10 | 4 |
Json | class |
Drupal\ |
core/ |
Default serialization for JSON. | 96 | 3 | |
AssetDumper | class |
Drupal\ |
core/ |
Dumps a CSS or JavaScript asset. | 3 | ||
DatabaseStorage | class |
Drupal\ |
core/ |
Defines the Database storage. | 3 | 3 | |
MigratePluginManager | class |
Drupal\ |
core/ |
Manages migrate plugins. | 3 | 2 | 3 |
OffCanvasRenderer | class |
Drupal\ |
core/ |
Default main content renderer for off-canvas dialog requests. | 3 | ||
D6TermNodeDeriver | class |
Drupal\ |
core/ |
Deriver for Drupal 6 term node migrations based on vocabularies. | 3 | ||
TestService | class |
Drupal\ |
core/ |
1 | 3 | ||
TestSessionHandlerProxy | class |
Drupal\ |
core/ |
Provides a test session handler proxy. | 3 | ||
WideModalRenderer | class |
Drupal\ |
core/ |
Default main content renderer for wide modal dialog requests. | 3 | ||
LoggerAwareStub | class |
Drupal\ |
core/ |
A test class that implements LoggerAwareInterface. | 1 | 3 | |
TestMiddleware | class |
Drupal\ |
core/ |
Provides a test middleware. | 3 | ||
BanIpManager | class |
Drupal\ |
core/ |
Ban IP manager. | 1 | 2 | |
BanMiddleware | class |
Drupal\ |
core/ |
Provides a HTTP middleware to implement IP based banning. | 2 | ||
BlockRepository | class |
Drupal\ |
core/ |
Provides a repository for Block config entities. | 2 | 2 | |
BlockContentUuidLookup | class |
Drupal\ |
core/ |
A cache collector that caches IDs for block_content UUIDs. | 2 | ||
BookBreadcrumbBuilder | class |
Drupal\ |
core/ |
Provides a breadcrumb builder for nodes in a book. | 2 | ||
BookExport | class |
Drupal\ |
core/ |
Provides methods for exporting book to different formats. | 1 | 2 | |
BookManager | class |
Drupal\ |
core/ |
Defines a book manager. | 3 | 2 | |
BookOutline | class |
Drupal\ |
core/ |
Provides handling to render the book outline. | 2 | ||
BookOutlineStorage | class |
Drupal\ |
core/ |
Defines a storage class for books outline. | 2 | ||
BookUninstallValidator | class |
Drupal\ |
core/ |
Prevents book module from being uninstalled under certain conditions. | 2 | ||
BreakpointManager | class |
Drupal\ |
core/ |
Defines a breakpoint plugin manager to deal with breakpoints. | 2 | ||
CKEditor5StylesheetsMessage | final class |
Drupal\ |
core/ |
Messaging for themes using the ckeditor_stylesheets setting. | 2 | ||
CommentBreadcrumbBuilder | class |
Drupal\ |
core/ |
Class to define the comment breadcrumb builder. | 2 | ||
CommentLazyBuilders | class |
Drupal\ |
core/ |
Defines a service for comment #lazy_builder callbacks. | 2 | ||
CommentLinkBuilder | class |
Drupal\ |
core/ |
Defines a class for building markup for comment links on a commented entity. | 1 | 2 | |
CommentManager | class |
Drupal\ |
core/ |
Comment manager contains common functions to manage comment fields. | 1 | 2 | |
ConfigSubscriber | class |
Drupal\ |
core/ |
Config subscriber. | 2 | ||
MailHandler | class |
Drupal\ |
core/ |
Provides a class for handling assembly and dispatch of contact mail messages. | 1 | 2 | |
ModerationInformation | class |
Drupal\ |
core/ |
General service for moderation-related questions about Entity API. | 2 | 2 | |
StateTransitionValidation | class |
Drupal\ |
core/ |
Validates whether a certain state transition is allowed. | 1 | 2 | |
ContentTranslationManager | class |
Drupal\ |
core/ |
Provides common functionality for content translation. | 4 | 2 |