Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x

Services - Drupal 11.1.x - Drupal Core

Primary tabs

  • Drupal 11.1.x

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

File

core/core.api.php, line 900

Title File name Summary All service tags
Drupal\user\PermissionHandlerInterface core/modules/user/user.services.yml
Drupal\user\ToolbarLinkBuilder core/modules/user/user.services.yml
Drupal\user\UserAuthInterface core/modules/user/user.services.yml
Drupal\user\UserDataInterface core/modules/user/user.services.yml
Drupal\user\UserFloodControlInterface core/modules/user/user.services.yml
Drupal\user\UserNameValidator core/modules/user/user.services.yml
Drupal\views\Analyzer core/modules/views/views.services.yml
Drupal\views\ExposedFormCache core/modules/views/views.services.yml
Drupal\views\ViewExecutableFactory core/modules/views/views.services.yml
Drupal\views\ViewsData core/modules/views/views.services.yml
Drupal\views\ViewsDataHelper core/modules/views/views.services.yml
Drupal\workspaces\Controller\WorkspacesHtmlEntityFormController core/modules/workspaces/workspaces.services.yml
Drupal\workspaces\WorkspaceAssociationInterface core/modules/workspaces/workspaces.services.yml
Drupal\workspaces\WorkspaceInformationInterface core/modules/workspaces/workspaces.services.yml
Drupal\workspaces\WorkspaceManagerInterface core/modules/workspaces/workspaces.services.yml
Drupal\workspaces\WorkspaceOperationFactory core/modules/workspaces/workspaces.services.yml
Drupal\workspaces\WorkspaceRepositoryInterface core/modules/workspaces/workspaces.services.yml
Drupal\workspaces\WorkspacesLazyBuilders core/modules/workspaces/workspaces.services.yml
dynamic_page_cache_deny_admin_routes core/modules/dynamic_page_cache/dynamic_page_cache.services.yml Drupal\dynamic_page_cache\PageCache\ResponsePolicy\DenyAdminRoutes dynamic_page_cache_response_policy
dynamic_page_cache_request_policy core/modules/dynamic_page_cache/dynamic_page_cache.services.yml Drupal\dynamic_page_cache\PageCache\RequestPolicy\DefaultRequestPolicy service_collector
dynamic_page_cache_response_policy core/modules/dynamic_page_cache/dynamic_page_cache.services.yml Drupal\Core\PageCache\ChainResponsePolicy service_collector
dynamic_page_cache_subscriber core/modules/dynamic_page_cache/dynamic_page_cache.services.yml Drupal\dynamic_page_cache\EventSubscriber\DynamicPageCacheSubscriber
editor.config_translation_mapper_subscriber core/modules/editor/editor.services.yml Drupal\editor\EventSubscriber\EditorConfigTranslationSubscriber
element.editor core/modules/editor/editor.services.yml Drupal\editor\Element
field.uninstall_validator core/modules/field/field.services.yml Drupal\field\FieldUninstallValidator
field_ui.subscriber core/modules/field_ui/field_ui.services.yml Drupal\field_ui\Routing\RouteSubscriber
file.event.subscriber core/modules/file/file.services.yml Drupal\file\EventSubscriber\FileEventSubscriber
file.input_stream_file_writer core/modules/file/file.services.yml Drupal\file\Upload\InputStreamFileWriter
file.recursive_validator core/modules/file/file.services.yml Symfony\Component\Validator\Validator\ValidatorInterface
file.recursive_validator_factory core/modules/file/file.services.yml Drupal\file\Validation\RecursiveValidatorFactory
file.repository core/modules/file/file.services.yml Drupal\file\FileRepository
file.upload_handler core/modules/file/file.services.yml Drupal\file\Upload\FileUploadHandler
file.usage core/modules/file/file.services.yml Drupal\file\FileUsage\DatabaseFileUsageBackend backend_overridable
file.validator core/modules/file/file.services.yml Drupal\file\Validation\FileValidator
filter.uninstall_validator core/modules/filter/filter.services.yml Drupal\filter\FilterUninstallValidator
help.breadcrumb core/modules/help/help.services.yml Drupal\help\HelpBreadcrumbBuilder breadcrumb_builder
help.twig.loader core/modules/help/help.services.yml Drupal\help\HelpTopicTwigLoader twig.loader
help_twig.extension core/modules/help/help.services.yml Drupal\help\HelpTwigExtension twig.extension
html_response.attachments_processor.big_pipe core/modules/big_pipe/big_pipe.services.yml \Drupal\big_pipe\Render\BigPipeResponseAttachmentsProcessor
html_response.big_pipe_subscriber core/modules/big_pipe/big_pipe.services.yml Drupal\big_pipe\EventSubscriber\HtmlResponseBigPipeSubscriber
http_middleware.big_pipe core/modules/big_pipe/big_pipe.services.yml \Drupal\big_pipe\StackMiddleware\ContentLength http_middleware
http_middleware.page_cache core/modules/page_cache/page_cache.services.yml Drupal\page_cache\StackMiddleware\PageCache http_middleware
image.page_cache_response_policy.deny_private_image_style_download core/modules/image/image.services.yml Drupal\image\PageCache\DenyPrivateImageStyleDownload page_cache_response_policy
inline_block.usage core/modules/layout_builder/layout_builder.services.yml Drupal\layout_builder\InlineBlockUsage
jsonapi.custom_query_parameter_names_validator.subscriber core/modules/jsonapi/jsonapi.services.yml Drupal\jsonapi\EventSubscriber\JsonApiRequestValidator
jsonapi.entity_access_checker core/modules/jsonapi/jsonapi.services.yml Drupal\jsonapi\Access\EntityAccessChecker
jsonapi.entity_resource core/modules/jsonapi/jsonapi.services.yml Drupal\jsonapi\Controller\EntityResource
jsonapi.exception_subscriber core/modules/jsonapi/jsonapi.services.yml Drupal\jsonapi\EventSubscriber\DefaultExceptionSubscriber
jsonapi.field_resolver core/modules/jsonapi/jsonapi.services.yml Drupal\jsonapi\Context\FieldResolver
jsonapi.file_upload core/modules/jsonapi/jsonapi.services.yml Drupal\jsonapi\Controller\FileUpload

Pagination

  • First page
  • Previous page
  • Page 1
  • Page 2
  • Page 3
  • Page 4
  • Page 5
  • Page 6
  • Page 7
  • Page 8
  • Page 9
  • …
  • Next page
  • Last page
RSS feed
Powered by Drupal