Services - 10.3.x - drupal
Introduction to services
A "service" (such as accessing the database, sending email, or translating user interface text) can be defined by a module or Drupal core. Defining a service means giving it a name and designating a default class to provide the service; ideally, there should also be an interface that defines the methods that may be called. Services are collected into the Dependency Injection Container, and can be overridden to use different classes or different instantiation by modules. See the Services and Dependency Injection Container topic for details.
Some services have tags, which are defined in the service definition. Tags are used to define a group of related services, or to specify some aspect of how the service behaves. See the Service Tags topic for more information.
See also
Services and Dependency Injection Container
File
-
core/
core.api.php, line 900
Title | File name | Summary | All service tags |
---|---|---|---|
html_response.subscriber | core/ |
Drupal\Core\EventSubscriber\HtmlResponseSubscriber | |
http_client | core/ |
GuzzleHttp\Client | |
http_client.advisory_feed_test | core/ |
Drupal\advisory_feed_test\AdvisoryTestClientMiddleware | http_client_middleware |
http_client_factory | core/ |
Drupal\Core\Http\ClientFactory | |
http_handler_stack | core/ |
GuzzleHttp\HandlerStack | |
http_handler_stack_configurator | core/ |
Drupal\Core\Http\HandlerStackConfigurator | service_id_collector |
http_kernel | core/ |
Drupal\Core\StackMiddleware\StackedHttpKernel | |
http_kernel.basic | core/ |
Symfony\Component\HttpKernel\HttpKernel | |
http_kernel.controller.argument_metadata_factory | core/ |
Symfony\Component\HttpKernel\ControllerMetadata\ArgumentMetadataFactory | |
http_kernel.controller.argument_resolver | core/ |
Symfony\Component\HttpKernel\Controller\ArgumentResolver | |
http_kernel_test.test_middleware | core/ |
Drupal\http_kernel_test\HttpKernel\TestMiddleware | http_middleware |
http_kernel_test.test_middleware2 | core/ |
Drupal\http_kernel_test\HttpKernel\TestMiddleware | http_middleware |
http_middleware.ajax_page_state | core/ |
Drupal\Core\StackMiddleware\AjaxPageState | http_middleware |
http_middleware.alter_content_middleware | core/ |
Drupal\http_middleware_test\StackMiddleware\AlterContentMiddleware | http_middleware |
http_middleware.big_pipe | core/ |
\Drupal\big_pipe\StackMiddleware\ContentLength | http_middleware |
http_middleware.content_length | core/ |
Drupal\Core\StackMiddleware\ContentLength | http_middleware |
http_middleware.cors | core/ |
Asm89\Stack\Cors | http_middleware |
http_middleware.kernel_pre_handle | core/ |
Drupal\Core\StackMiddleware\KernelPreHandle | http_middleware |
http_middleware.monkeys | core/ |
Drupal\error_service_test\MonkeysInTheControlRoom | http_middleware |
http_middleware.negotiation | core/ |
Drupal\Core\StackMiddleware\NegotiationMiddleware | http_middleware |
http_middleware.page_cache | core/ |
Drupal\page_cache\StackMiddleware\PageCache | http_middleware |
http_middleware.reverse_proxy | core/ |
Drupal\Core\StackMiddleware\ReverseProxyMiddleware | http_middleware |
http_middleware.session | core/ |
Drupal\Core\StackMiddleware\Session | http_middleware |
image.factory | core/ |
Drupal\Core\Image\ImageFactory | |
image.page_cache_response_policy.deny_private_image_style_download | core/ |
Drupal\image\PageCache\DenyPrivateImageStyleDownload | page_cache_response_policy |
image.toolkit.manager | core/ |
Drupal\Core\ImageToolkit\ImageToolkitManager | plugin_manager_cache_clear |
image.toolkit.operation.manager | core/ |
Drupal\Core\ImageToolkit\ImageToolkitOperationManager | plugin_manager_cache_clear |
info_parser | core/ |
Drupal\Core\Extension\InfoParser | |
inline_block.usage | core/ |
Drupal\layout_builder\InlineBlockUsage | |
install_profile_uninstall_validator | core/ |
Drupal\Core\Extension\InstallProfileUninstallValidator | module_install.uninstall_validator |
jsonapi.custom_query_parameter_names_validator.subscriber | core/ |
Drupal\jsonapi\EventSubscriber\JsonApiRequestValidator | |
jsonapi.entity_access_checker | core/ |
Drupal\jsonapi\Access\EntityAccessChecker | |
jsonapi.entity_resource | core/ |
Drupal\jsonapi\Controller\EntityResource | |
jsonapi.exception_subscriber | core/ |
Drupal\jsonapi\EventSubscriber\DefaultExceptionSubscriber | |
jsonapi.field_resolver | core/ |
Drupal\jsonapi\Context\FieldResolver | |
jsonapi.file_upload | core/ |
Drupal\jsonapi\Controller\FileUpload | |
jsonapi.include_resolver | core/ |
Drupal\jsonapi\IncludeResolver | |
jsonapi.maintenance_mode_subscriber | core/ |
Drupal\jsonapi\EventSubscriber\JsonapiMaintenanceModeSubscriber | |
jsonapi.normalization_cacher | core/ |
Drupal\jsonapi\EventSubscriber\ResourceObjectNormalizationCacher | |
jsonapi.resource_response.subscriber | core/ |
Drupal\jsonapi\EventSubscriber\ResourceResponseSubscriber | |
jsonapi.resource_response_validator.subscriber | core/ |
Drupal\jsonapi\EventSubscriber\ResourceResponseValidator | |
jsonapi.resource_type.repository | core/ |
Drupal\jsonapi\ResourceType\ResourceTypeRepository | |
jsonapi.resource_type.repository.jsonapi_test_field_aliasing | core/ |
Drupal\jsonapi_test_field_aliasing\ResourceType\AliasingResourceTypeRepository | |
jsonapi.resource_version.route_enhancer | core/ |
Drupal\jsonapi\Revisions\ResourceVersionRouteEnhancer | route_enhancer |
jsonapi.route_enhancer | core/ |
Drupal\jsonapi\Routing\RouteEnhancer | route_enhancer |
jsonapi.route_filter.format_setter | core/ |
Drupal\jsonapi\Routing\EarlyFormatSetter | route_filter |
jsonapi.serializer | core/ |
Drupal\jsonapi\Serializer\Serializer | |
jsonapi.version_negotiator | core/ |
Drupal\jsonapi\Revisions\VersionNegotiator | service_collector |
jsonapi.version_negotiator.default | core/ |
Abstract | |
jsonapi.version_negotiator.id | core/ |
Drupal\jsonapi\Revisions\VersionById | jsonapi_version_negotiator |
Pagination
- Previous page
- Page 14
- Next page
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.