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 |
---|---|---|---|---|---|---|---|
XmlEncoder | class |
Drupal\ |
core/ |
Adds XML support for serializer. | 2 | 2 | |
ChainEntityResolver | class |
Drupal\ |
core/ |
Resolver delegating the entity resolution to a chain of resolvers. | 1 | 2 | |
TargetIdResolver | class |
Drupal\ |
core/ |
Resolves entities from data that contains an entity target ID. | 2 | ||
UuidResolver | class |
Drupal\ |
core/ |
Resolves entities from data that contains an entity UUID. | 1 | 2 | |
DefaultExceptionSubscriber | class |
Drupal\ |
core/ |
Handles default error responses in serialization formats. | 1 | 2 | 2 |
UserRouteAlterSubscriber | class |
Drupal\ |
core/ |
Alters user authentication routes to support additional serialization formats. | 2 | ||
EntityNormalizer | class |
Drupal\ |
core/ |
Normalizes/denormalizes Drupal entity objects into an array structure. | 1 | 2 | |
FieldItemNormalizer | class |
Drupal\ |
core/ |
Denormalizes field item object structure by updating the entity field values. | 2 | ||
FieldNormalizer | class |
Drupal\ |
core/ |
Denormalizes data to Drupal field values. | 2 | ||
TimestampNormalizer | class |
Drupal\ |
core/ |
Converts values for the Timestamp data type to and from common formats. | 1 | 2 | |
BlockHasOverridesAccessCheck | class |
Drupal\ |
core/ |
Determines whether the requested block has a 'settings_tray' form. | 2 | ||
BlockPluginHasSettingsTrayFormAccessCheck | class |
Drupal\ |
core/ |
Determines whether the requested block has a 'settings_tray' form. | 1 | 2 | |
CronAccessCheck | class |
Drupal\ |
core/ |
Access check for cron routes. | 2 | ||
DbUpdateAccessCheck | class |
Drupal\ |
core/ |
Access check for database update routes. | 2 | ||
AdminRouteSubscriber | class |
Drupal\ |
core/ |
Adds the _admin_route option to each admin HTML route. | 1 | 2 | |
AdvisoriesConfigSubscriber | class |
Drupal\ |
core/ |
Defines a config subscriber for changes to 'system.advisories'. | 2 | ||
LoggingForm | class |
Drupal\ |
core/ |
Configure logging settings for this site. | 2 | ||
PathProcessorFiles | class |
Drupal\ |
core/ |
Defines a path processor to rewrite file URLs. | 2 | ||
SecurityAdvisoriesFetcher | final class |
Drupal\ |
core/ |
Defines a service to get security advisories. | 1 | 2 | |
BatchNegotiator | class |
Drupal\ |
core/ |
Sets the active theme for the batch page. | 2 | ||
DbUpdateNegotiator | class |
Drupal\ |
core/ |
Sets the active theme for the database update pages. | 2 | ||
TermRouteContext | class |
Drupal\ |
core/ |
Sets the current taxonomy term as a context on taxonomy term routes. | 1 | 2 | |
ToolbarMenuLinkTree | class |
Drupal\ |
core/ |
Extends MenuLinkTree to add specific theme suggestions for the toolbar. | 2 | ||
AllowToolbarPath | class |
Drupal\ |
core/ |
Cache policy for the toolbar page cache service. | 1 | 2 | |
UpdateManagerAccessCheck | class |
Drupal\ |
core/ |
Determines whether allow authorized operations is set. | 2 | ||
LoginStatusCheck | class |
Drupal\ |
core/ |
Determines access to routes based on login status of current user. | 2 | ||
PermissionAccessCheck | class |
Drupal\ |
core/ |
Permission access check. | 1 | 2 | |
RegisterAccessCheck | class |
Drupal\ |
core/ |
Access check for user registration routes. | 2 | ||
RoleAccessCheck | class |
Drupal\ |
core/ |
Determines access to routes based on roles. | 1 | 2 | |
CurrentUserContext | class |
Drupal\ |
core/ |
Sets the current user as a context. | 2 | ||
AccessDeniedSubscriber | class |
Drupal\ |
core/ |
Redirects users when access is denied. | 2 | ||
MaintenanceModeSubscriber | class |
Drupal\ |
core/ |
Maintenance mode subscriber to log out users. | 2 | ||
UserFloodSubscriber | class |
Drupal\ |
core/ |
Logs details of User Flood Control events. | 2 | ||
AdminNegotiator | class |
Drupal\ |
core/ |
Sets the active theme on admin pages. | 1 | 2 | |
RouteSubscriber | class |
Drupal\ |
core/ |
Builds up the routes of all views. | 1 | 1 | 2 |
ViewsEntitySchemaSubscriber | class |
Drupal\ |
core/ |
Reacts to changes on entity types to update all views entities. | 2 | ||
ViewUIConverter | class |
Drupal\ |
core/ |
Provides upcasting for a view entity to be used in the Views UI. | 2 | ||
ActiveWorkspaceCheck | class |
Drupal\ |
core/ |
Determines access to routes based on the presence of an active workspace. | 1 | 2 | |
PgsqlQueryFactory | class |
Drupal\ |
core/ |
Workspaces PostgreSQL-specific entity query implementation. | 2 | ||
EntitySchemaSubscriber | class |
Drupal\ |
core/ |
Defines a class for listening to entity schema changes. | 2 | ||
QueryParameterWorkspaceNegotiator | class |
Drupal\ |
core/ |
Defines the query parameter workspace negotiator. | 2 | ||
SessionWorkspaceNegotiator | class |
Drupal\ |
core/ |
Defines the session workspace negotiator. | 1 | 2 | |
AccountPermissionsCacheContext | class |
Drupal\ |
core/ |
Defines the AccountPermissionsCacheContext service, for "per permission" caching. | 2 | ||
CookiesCacheContext | class |
Drupal\ |
core/ |
Defines the CookiesCacheContext service, for "per cookie" caching. | 1 | 2 | |
HeadersCacheContext | class |
Drupal\ |
core/ |
Defines the HeadersCacheContext service, for "per header" caching. | 1 | 2 | |
IpCacheContext | class |
Drupal\ |
core/ |
Defines the IpCacheContext service, for "per IP address" caching. | 2 | ||
IsFrontPathCacheContext | class |
Drupal\ |
core/ |
Defines a cache context for whether the URL is the front page of the site. | 1 | 2 | |
IsSuperUserCacheContext | class |
Drupal\ |
core/ |
Defines the IsSuperUserCacheContext service, for "super user or not" caching. | 2 | ||
LanguagesCacheContext | class |
Drupal\ |
core/ |
Defines the LanguagesCacheContext service, for "per language" caching. | 2 | ||
PagersCacheContext | class |
Drupal\ |
core/ |
Defines a cache context for "per page in a pager" caching. | 2 |