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 |
---|---|---|---|---|---|---|---|
ThemeNegotiator | class |
Drupal\ |
core/ |
Provides a class which determines the active theme of the page. | 1 | 2 | |
PhpTransliteration | class |
Drupal\ |
core/ |
Enhances PhpTransliteration with an alter hook. | 1 | 2 | |
UpdateHookRegistryFactory Deprecated | class |
Drupal\ |
core/ |
Service factory for the versioning update registry. | 2 | ||
LinkGenerator | class |
Drupal\ |
core/ |
Provides a class which generates a link with route names and parameters. | 2 | 2 | |
Token | class |
Drupal\ |
core/ |
Drupal placeholder/token replacement system. | 6 | 2 | |
UnroutedUrlAssembler | class |
Drupal\ |
core/ |
Provides a way to build external or non Drupal local domain URLs. | 1 | 2 | |
ConstraintManager | class |
Drupal\ |
core/ |
Constraint plugin manager. | 5 | 2 | |
AutomatedCron | class |
Drupal\ |
core/ |
A subscriber running cron after a response is sent. | 2 | ||
DisallowBasicAuthRequests | class |
Drupal\ |
core/ |
Cache policy for pages served from basic auth. | 2 | ||
HtmlResponseBigPipeSubscriber | class |
Drupal\ |
core/ |
Response subscriber to replace the HtmlResponse with a BigPipeResponse. | 2 | ||
NoBigPipeRouteAlterSubscriber | class |
Drupal\ |
core/ |
Sets the '_no_big_pipe' option on select routes. | 2 | ||
BigPipeResponseAttachmentsProcessor | class |
Drupal\ |
core/ |
Processes attachments of HTML responses with BigPipe enabled. | 1 | 2 | |
BlockPageDisplayVariantSubscriber | class |
Drupal\ |
core/ |
Selects the block page display variant. | 2 | ||
AdminDemoNegotiator | class |
Drupal\ |
core/ |
Negotiates the theme for the block admin demo page via the URL. | 2 | ||
BookNodeIsRemovableAccessCheck | class |
Drupal\ |
core/ |
Determines whether the requested node can be removed from its book. | 2 | ||
CKEditor5CacheTag | class |
Drupal\ |
core/ |
A subscriber invalidating cache tags when the default theme changes. | 2 | ||
CKEditor4To5UpgradePluginManager | class |
Drupal\ |
core/ |
Provides a CKEditor 4 to 5 upgrade plugin manager. | 2 | ||
CKEditor5PluginManager | class |
Drupal\ |
core/ |
Provides a CKEditor 5 plugin manager. | 2 | ||
ConfigTranslationFormAccess | class |
Drupal\ |
core/ |
Checks access for displaying the translation add, edit, and delete forms. | 2 | ||
ConfigTranslationOverviewAccess | class |
Drupal\ |
core/ |
Checks access for displaying the configuration translation overview. | 1 | 2 | |
RouteSubscriber | class |
Drupal\ |
core/ |
Listens to the dynamic route events. | 2 | ||
ContactPageAccess | class |
Drupal\ |
core/ |
Access check for contact_personal_page route. | 2 | ||
LatestRevisionCheck | class |
Drupal\ |
core/ |
Access check for the entity moderation tab. | 2 | 2 | |
ConfigImportSubscriber | class |
Drupal\ |
core/ |
Check moderation states are not being used before updating workflow config. | 2 | ||
ContentModerationRouteSubscriber | class |
Drupal\ |
core/ |
Subscriber for moderated revisionable entity forms. | 1 | 2 | |
ContentTranslationDeleteAccess | class |
Drupal\ |
core/ |
Access check for entity translation deletion. | 2 | ||
ContentTranslationManageAccessCheck | class |
Drupal\ |
core/ |
Access check for entity translation CRUD operation. | 1 | 2 | |
ContentTranslationOverviewAccess | class |
Drupal\ |
core/ |
Access check for entity translation overview. | 2 | ||
ContentTranslationRouteSubscriber | class |
Drupal\ |
core/ |
Subscriber for entity translation routes. | 2 | ||
DynamicPageCacheSubscriber | class |
Drupal\ |
core/ |
Returns cached responses as early and avoiding as much work as possible. | 6 | 2 | |
EditorConfigTranslationSubscriber | class |
Drupal\ |
core/ |
Adds configuration names to configuration mapper on POPULATE_MAPPER event. | 2 | ||
EditorManager | class |
Drupal\ |
core/ |
Configurable text editor manager. | 2 | ||
FormModeAccessCheck | class |
Drupal\ |
core/ |
Defines an access check for entity form mode routes. | 2 | ||
ViewModeAccessCheck | class |
Drupal\ |
core/ |
Defines an access check for entity view mode routes. | 2 | ||
RouteSubscriber | class |
Drupal\ |
core/ |
Subscriber for Field UI routes. | 2 | ||
DatabaseFileUsageBackend | class |
Drupal\ |
core/ |
Defines the database file usage backend. This is the default Drupal backend. | 2 | ||
ForumListingBreadcrumbBuilder | class |
Drupal\ |
core/ |
Provides a breadcrumb builder base class for forum listing pages. | 2 | ||
ForumNodeBreadcrumbBuilder | class |
Drupal\ |
core/ |
Breadcrumb builder for forum nodes. | 2 | ||
DenyPrivateImageStyleDownload | class |
Drupal\ |
core/ |
Cache policy for image preview page. | 1 | 2 | |
PathProcessorImageStyles | class |
Drupal\ |
core/ |
Defines a path processor to rewrite image styles URLs. | 2 | ||
EntityAccessChecker | class |
Drupal\ |
core/ |
Checks access to entities. | 1 | 2 | |
RelationshipRouteAccessCheck | final class |
Drupal\ |
core/ |
Defines a class to check access to related and relationship routes. | 1 | 2 | |
FieldResolver | class |
Drupal\ |
core/ |
A service that evaluates external path expressions against Drupal fields. | 1 | 2 | |
FileUpload | class |
Drupal\ |
core/ |
Handles file upload requests. | 2 | ||
JsonEncoder | class |
Drupal\ |
core/ |
Encodes JSON:API data. | 2 | ||
DefaultExceptionSubscriber | class |
Drupal\ |
core/ |
Serializes exceptions in compliance with the JSON:API specification. | 2 | ||
JsonApiRequestValidator | class |
Drupal\ |
core/ |
Request subscriber that validates a JSON:API request. | 2 | ||
JsonapiMaintenanceModeSubscriber | class |
Drupal\ |
core/ |
Maintenance mode subscriber for JSON:API requests. | 2 | ||
ResourceObjectNormalizationCacher | class |
Drupal\ |
core/ |
Caches entity normalizations after the response has been sent. | 1 | 2 | |
ResourceResponseSubscriber | class |
Drupal\ |
core/ |
Response subscriber that serializes and removes ResourceResponses' data. | 2 |