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
serializer.normalizer.content_entity core/modules/serialization/serialization.services.yml Drupal\serialization\Normalizer\ContentEntityNormalizer normalizer
serializer.normalizer.content_entity.jsonapi core/modules/jsonapi/jsonapi.services.yml Drupal\jsonapi\Normalizer\ContentEntityDenormalizer jsonapi_normalizer
serializer.normalizer.data.jsonapi core/modules/jsonapi/jsonapi.services.yml Drupal\jsonapi\Normalizer\DataNormalizer jsonapi_normalizer
serializer.normalizer.datetimeiso8601 core/modules/serialization/serialization.services.yml \Drupal\serialization\Normalizer\DateTimeIso8601Normalizer normalizer
serializer.normalizer.entity core/modules/serialization/serialization.services.yml Drupal\serialization\Normalizer\EntityNormalizer normalizer
serializer.normalizer.entity_access_exception.jsonapi core/modules/jsonapi/jsonapi.services.yml Drupal\jsonapi\Normalizer\EntityAccessDeniedHttpExceptionNormalizer jsonapi_normalizer
serializer.normalizer.entity_reference_field_item core/modules/serialization/serialization.services.yml Drupal\serialization\Normalizer\EntityReferenceFieldItemNormalizer normalizer
serializer.normalizer.field.jsonapi core/modules/jsonapi/jsonapi.services.yml Drupal\jsonapi\Normalizer\FieldNormalizer jsonapi_normalizer
serializer.normalizer.field_item.jsonapi core/modules/jsonapi/jsonapi.services.yml Drupal\jsonapi\Normalizer\FieldItemNormalizer jsonapi_normalizer
serializer.normalizer.http_exception.jsonapi core/modules/jsonapi/jsonapi.services.yml Drupal\jsonapi\Normalizer\HttpExceptionNormalizer jsonapi_normalizer
serializer.normalizer.jsonapi_document_toplevel.jsonapi core/modules/jsonapi/jsonapi.services.yml Drupal\jsonapi\Normalizer\JsonApiDocumentTopLevelNormalizer jsonapi_normalizer
serializer.normalizer.link_collection.jsonapi core/modules/jsonapi/jsonapi.services.yml Drupal\jsonapi\Normalizer\LinkCollectionNormalizer jsonapi_normalizer
serializer.normalizer.list core/modules/serialization/serialization.services.yml Drupal\serialization\Normalizer\ListNormalizer normalizer
serializer.normalizer.password_field_item core/modules/serialization/serialization.services.yml Drupal\serialization\Normalizer\NullNormalizer normalizer
serializer.normalizer.primitive_data core/modules/serialization/serialization.services.yml Drupal\serialization\Normalizer\PrimitiveDataNormalizer normalizer
serializer.normalizer.relationship.jsonapi core/modules/jsonapi/jsonapi.services.yml Drupal\jsonapi\Normalizer\RelationshipNormalizer jsonapi_normalizer
serializer.normalizer.resource_identifier.jsonapi core/modules/jsonapi/jsonapi.services.yml Drupal\jsonapi\Normalizer\ResourceIdentifierNormalizer jsonapi_normalizer
serializer.normalizer.resource_object.jsonapi core/modules/jsonapi/jsonapi.services.yml Drupal\jsonapi\Normalizer\ResourceObjectNormalizer jsonapi_normalizer
serializer.normalizer.safe_string core/modules/serialization/serialization.services.yml Drupal\serialization\Normalizer\MarkupNormalizer normalizer
serializer.normalizer.timestamp core/modules/serialization/serialization.services.yml Drupal\serialization\Normalizer\TimestampNormalizer normalizer
serializer.normalizer.timestamp_item core/modules/serialization/serialization.services.yml Drupal\serialization\Normalizer\TimestampItemNormalizer normalizer
serializer.normalizer.typed_data core/modules/serialization/serialization.services.yml Drupal\serialization\Normalizer\TypedDataNormalizer normalizer
serializer.normalizer.unprocessable_entity_exception.jsonapi core/modules/jsonapi/jsonapi.services.yml Drupal\jsonapi\Normalizer\UnprocessableHttpEntityExceptionNormalizer jsonapi_normalizer
shortcut.lazy_builders core/modules/shortcut/shortcut.services.yml Drupal\shortcut\ShortcutLazyBuilders
sqlite.views.date_sql core/modules/views/views.services.yml Drupal\views\Plugin\views\query\SqliteDateSql
stream_wrapper.translations core/modules/locale/locale.services.yml Drupal\locale\StreamWrapper\TranslationsStream stream_wrapper
string_translator.locale.lookup core/modules/locale/locale.services.yml Drupal\locale\LocaleTranslation string_translator, needs_destruction
Symfony\Component\Filesystem\Filesystem core/modules/package_manager/package_manager.services.yml
Symfony\Component\Process\ExecutableFinder core/modules/package_manager/package_manager.services.yml
system.access_route_alter_subscriber core/modules/system/system.services.yml Drupal\system\EventSubscriber\AccessRouteAlterSubscriber
system.admin_path.route_subscriber core/modules/system/system.services.yml Drupal\system\EventSubscriber\AdminRouteSubscriber
system.advisories_config_subscriber core/modules/system/system.services.yml Drupal\system\EventSubscriber\AdvisoriesConfigSubscriber
system.breadcrumb.default core/modules/system/system.services.yml Drupal\system\PathBasedBreadcrumbBuilder breadcrumb_builder
system.config_cache_tag core/modules/system/system.services.yml Drupal\system\EventSubscriber\ConfigCacheTag
system.config_subscriber core/modules/system/system.services.yml Drupal\system\SystemConfigSubscriber
system.file_event.subscriber core/modules/system/system.services.yml Drupal\system\EventSubscriber\SecurityFileUploadEventSubscriber
system.manager core/modules/system/system.services.yml Drupal\system\SystemManager
system.menus.route_subscriber core/modules/system/system.services.yml Drupal\system\Routing\MenuLinksetRoutes
system.module_admin_links_helper core/modules/system/system.services.yml Drupal\system\ModuleAdminLinksHelper
system.module_admin_links_memory_cache core/modules/system/system.services.yml Drupal\Core\Cache\MemoryCache\MemoryCache
system.sa_fetcher core/modules/system/system.services.yml Drupal\system\SecurityAdvisories\SecurityAdvisoriesFetcher
system.timezone_resolver core/modules/system/system.services.yml Drupal\system\TimeZoneResolver
taxonomy_term.breadcrumb core/modules/taxonomy/taxonomy.services.yml Drupal\taxonomy\TermBreadcrumbBuilder breadcrumb_builder
taxonomy_term.taxonomy_term_route_context core/modules/taxonomy/taxonomy.services.yml Drupal\taxonomy\ContextProvider\TermRouteContext context_provider
theme.negotiator.admin_theme core/modules/user/user.services.yml Drupal\user\Theme\AdminNegotiator theme_negotiator
theme.negotiator.block.admin_demo core/modules/block/block.services.yml Drupal\block\Theme\AdminDemoNegotiator theme_negotiator
theme.negotiator.system.batch core/modules/system/system.services.yml Drupal\system\Theme\BatchNegotiator theme_negotiator
theme.negotiator.system.db_update core/modules/system/system.services.yml Drupal\system\Theme\DbUpdateNegotiator theme_negotiator
toolbar.menu_tree core/modules/toolbar/toolbar.services.yml Drupal\toolbar\Menu\ToolbarMenuLinkTree
toolbar.page_cache_request_policy.allow_toolbar_path core/modules/toolbar/toolbar.services.yml Drupal\toolbar\PageCache\AllowToolbarPath page_cache_request_policy

Pagination

  • First page
  • Previous page
  • …
  • Page 5
  • Page 6
  • Page 7
  • Page 8
  • Page 9
  • Page 10
  • Page 11
  • Page 12
  • Page 13
  • Next page
  • Last page

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal