Primary tabs

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

Service Tags

Namesort ascending File Class Tags
rest.resource.entity.post_route.subscriber core/modules/rest/rest.services.yml \Drupal\rest\EventSubscriber\EntityResourcePostRouteSubscriber
response_generator_subscriber core/core.services.yml Drupal\Core\EventSubscriber\ResponseGeneratorSubscriber
response_filter.rss.relative_url core/core.services.yml Drupal\Core\EventSubscriber\RssResponseRelativeUrlFilter
response_filter.active_link core/core.services.yml Drupal\Core\EventSubscriber\ActiveLinkResponseFilter
resolver_manager.entity core/core.services.yml Drupal\Core\Entity\EntityResolverManager
required_module_uninstall_validator core/core.services.yml Drupal\Core\Extension\RequiredModuleUninstallValidator module_install.uninstall_validator
request_stack core/core.services.yml Symfony\Component\HttpFoundation\RequestStack persist
request_format_route_filter core/core.services.yml Drupal\Core\Routing\RequestFormatRouteFilter route_filter
render_placeholder_message_test.controller core/modules/system/tests/modules/render_placeholder_message_test/render_placeholder_message_test.services.yml Drupal\render_placeholder_message_test\RenderPlaceholderMessageTestController
render_placeholder_generator core/core.services.yml Drupal\Core\Render\PlaceholderGenerator
render_cache core/core.services.yml Drupal\Core\Render\PlaceholderingRenderCache
renderer_non_html core/core.services.yml Drupal\Core\EventSubscriber\RenderArrayNonHtmlSubscriber
renderer core/core.services.yml Drupal\Core\Render\Renderer
redirect_response_subscriber core/core.services.yml Drupal\Core\EventSubscriber\RedirectResponseSubscriber
redirect_leading_slashes_subscriber core/core.services.yml Drupal\Core\EventSubscriber\RedirectLeadingSlashesSubscriber
redirect.destination core/core.services.yml Drupal\Core\Routing\RedirectDestination
queue.database core/core.services.yml Drupal\Core\Queue\QueueDatabaseFactory
queue core/core.services.yml Drupal\Core\Queue\QueueFactory
psr_response_view_subscriber core/core.services.yml Drupal\Core\EventSubscriber\PsrResponseSubscriber
Psr\Http\Message\UploadedFileFactoryInterface core/core.services.yml
Psr\Http\Message\StreamFactoryInterface core/core.services.yml
Psr\Http\Message\ServerRequestFactoryInterface core/core.services.yml
Psr\Http\Message\ResponseFactoryInterface core/core.services.yml
Psr\Http\Client\ClientInterface core/core.services.yml
Psr\EventDispatcher\EventDispatcherInterface core/core.services.yml
psr7.http_message_factory core/core.services.yml Symfony\Bridge\PsrHttpMessage\Factory\PsrHttpFactory
psr7.http_foundation_factory core/core.services.yml Symfony\Bridge\PsrHttpMessage\Factory\HttpFoundationFactory
psr17.uploaded_file_factory core/core.services.yml GuzzleHttp\Psr7\HttpFactory
psr17.stream_factory core/core.services.yml GuzzleHttp\Psr7\HttpFactory
psr17.server_request_factory core/core.services.yml GuzzleHttp\Psr7\HttpFactory
psr17.response_factory core/core.services.yml GuzzleHttp\Psr7\HttpFactory
private_key core/core.services.yml Drupal\Core\PrivateKey
plugin_form.factory core/core.services.yml Drupal\Core\Plugin\PluginFormFactory
plugin.manager.workflows.type core/modules/workflows/workflows.services.yml Drupal\workflows\WorkflowTypeManager plugin_manager_cache_clear
plugin.manager.views.wizard core/modules/views/views.services.yml Drupal\views\Plugin\ViewsPluginManager
plugin.manager.views.style core/modules/views/views.services.yml Drupal\views\Plugin\ViewsPluginManager
plugin.manager.views.sort core/modules/views/views.services.yml Drupal\views\Plugin\ViewsHandlerManager
plugin.manager.views.row core/modules/views/views.services.yml Drupal\views\Plugin\ViewsPluginManager
plugin.manager.views.relationship core/modules/views/views.services.yml Drupal\views\Plugin\ViewsHandlerManager
plugin.manager.views.query core/modules/views/views.services.yml Drupal\views\Plugin\ViewsPluginManager
plugin.manager.views.pager core/modules/views/views.services.yml Drupal\views\Plugin\ViewsPluginManager
plugin.manager.views.join core/modules/views/views.services.yml Drupal\views\Plugin\ViewsHandlerManager
plugin.manager.views.filter core/modules/views/views.services.yml Drupal\views\Plugin\ViewsHandlerManager
plugin.manager.views.field core/modules/views/views.services.yml Drupal\views\Plugin\ViewsHandlerManager
plugin.manager.views.exposed_form core/modules/views/views.services.yml Drupal\views\Plugin\ViewsPluginManager
plugin.manager.views.display_extender core/modules/views/views.services.yml Drupal\views\Plugin\ViewsPluginManager
plugin.manager.views.display core/modules/views/views.services.yml Drupal\views\Plugin\ViewsPluginManager
plugin.manager.views.cache core/modules/views/views.services.yml Drupal\views\Plugin\ViewsPluginManager
plugin.manager.views.argument_validator core/modules/views/views.services.yml Drupal\views\Plugin\ViewsPluginManager
plugin.manager.views.argument_default core/modules/views/views.services.yml Drupal\views\Plugin\ViewsPluginManager

Pages

Other projects