Primary tabs

  1. 8.5.x core/core.api.php listing_page_service
  2. 8.0.x core/core.api.php listing_page_service
  3. 8.1.x core/core.api.php listing_page_service
  4. 8.2.x core/core.api.php listing_page_service
  5. 8.3.x core/core.api.php listing_page_service
  6. 8.4.x core/core.api.php listing_page_service
  7. 8.6.x core/core.api.php listing_page_service

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

Contains filters are case sensitive
Namesort descending File Class Tags
http_client_factory core/core.services.yml Drupal\Core\Http\ClientFactory
http_handler_stack core/core.services.yml GuzzleHttp\HandlerStack
http_handler_stack_configurator core/core.services.yml Drupal\Core\Http\HandlerStackConfigurator
http_kernel core/core.services.yml Stack\StackedHttpKernel
http_kernel.basic core/core.services.yml Symfony\Component\HttpKernel\HttpKernel
http_middleware.cors core/core.services.yml Asm89\Stack\Cors http_middleware
http_middleware.kernel_pre_handle core/core.services.yml Drupal\Core\StackMiddleware\KernelPreHandle http_middleware
http_middleware.monkeys core/modules/system/tests/modules/error_service_test/error_service_test.services.yml Drupal\error_service_test\MonkeysInTheControlRoom http_middleware
http_middleware.negotiation core/core.services.yml Drupal\Core\StackMiddleware\NegotiationMiddleware http_middleware
http_middleware.page_cache core/modules/page_cache/page_cache.services.yml Drupal\page_cache\StackMiddleware\PageCache http_middleware
http_middleware.reverse_proxy core/core.services.yml Drupal\Core\StackMiddleware\ReverseProxyMiddleware http_middleware
http_middleware.session core/core.services.yml Drupal\Core\StackMiddleware\Session http_middleware
image.factory core/core.services.yml Drupal\Core\Image\ImageFactory
image.page_cache_response_policy.deny_private_image_style_download core/modules/image/image.services.yml Drupal\image\PageCache\DenyPrivateImageStyleDownload page_cache_response_policy
image.toolkit.manager core/core.services.yml Drupal\Core\ImageToolkit\ImageToolkitManager plugin_manager_cache_clear
image.toolkit.operation.manager core/core.services.yml Drupal\Core\ImageToolkit\ImageToolkitOperationManager plugin_manager_cache_clear
info_parser core/core.services.yml Drupal\Core\Extension\InfoParser
kernel_destruct_subscriber core/core.services.yml Drupal\Core\EventSubscriber\KernelDestructionSubscriber event_subscriber
keyvalue core/core.services.yml Drupal\Core\KeyValueStore\KeyValueFactory
keyvalue.database core/core.services.yml Drupal\Core\KeyValueStore\KeyValueDatabaseFactory
keyvalue.expirable core/core.services.yml Drupal\Core\KeyValueStore\KeyValueExpirableFactory
keyvalue.expirable.database core/core.services.yml Drupal\Core\KeyValueStore\KeyValueDatabaseExpirableFactory
language.config_factory_override core/modules/language/language.services.yml Drupal\language\Config\LanguageConfigFactoryOverride config.factory.override, event_subscriber
language.config_subscriber core/modules/language/language.services.yml Drupal\language\EventSubscriber\ConfigSubscriber event_subscriber
language.current_language_context core/core.services.yml Drupal\Core\Language\ContextProvider\CurrentLanguageContext context_provider
language.default core/core.services.yml Drupal\Core\Language\LanguageDefault
language_converter core/modules/language/language.services.yml Drupal\language\LanguageConverter paramconverter
language_manager core/core.services.yml Drupal\Core\Language\LanguageManager
language_negotiator core/modules/language/language.services.yml Drupal\language\LanguageNegotiator
layout.icon_builder core/modules/layout_discovery/layout_discovery.services.yml Drupal\Core\Layout\Icon\SvgIconBuilder
layout_builder.param_converter core/modules/layout_builder/layout_builder.services.yml Drupal\layout_builder\Routing\LayoutTempstoreParamConverter paramconverter
layout_builder.routes core/modules/layout_builder/layout_builder.services.yml Drupal\layout_builder\Routing\LayoutBuilderRoutes event_subscriber
layout_builder.route_enhancer core/modules/layout_builder/layout_builder.services.yml Drupal\layout_builder\Routing\LayoutBuilderRouteEnhancer route_enhancer
layout_builder.sample_entity_generator core/modules/layout_builder/layout_builder.services.yml Drupal\layout_builder\Entity\LayoutBuilderSampleEntityGenerator
layout_builder.tempstore_repository core/modules/layout_builder/layout_builder.services.yml Drupal\layout_builder\LayoutTempstoreRepository
library.dependency_resolver core/core.services.yml Drupal\Core\Asset\LibraryDependencyResolver
library.discovery core/core.services.yml Drupal\Core\Asset\LibraryDiscovery
library.discovery.collector core/core.services.yml Drupal\Core\Asset\LibraryDiscoveryCollector needs_destruction
library.discovery.parser core/core.services.yml Drupal\Core\Asset\LibraryDiscoveryParser
link_generator core/core.services.yml Drupal\Core\Utility\LinkGenerator
locale.config_manager core/modules/locale/locale.services.yml Drupal\locale\LocaleConfigManager
locale.config_subscriber core/modules/locale/locale.services.yml Drupal\locale\LocaleConfigSubscriber event_subscriber
locale.default.config.storage core/modules/locale/locale.services.yml Drupal\locale\LocaleDefaultConfigStorage
locale.locale_translation_cache_tag core/modules/locale/locale.services.yml Drupal\locale\EventSubscriber\LocaleTranslationCacheTag event_subscriber
locale.plural.formula core/modules/locale/locale.services.yml Drupal\locale\PluralFormula
locale.project core/modules/locale/locale.services.yml Drupal\locale\LocaleProjectStorage
locale.storage core/modules/locale/locale.services.yml Drupal\locale\StringDatabaseStorage backend_overridable
lock core/core.services.yml Drupal\Core\Lock\DatabaseLockBackend backend_overridable
lock.persistent core/core.services.yml Drupal\Core\Lock\PersistentDatabaseLockBackend backend_overridable
logger.broken core/modules/system/tests/modules/error_service_test/error_service_test.services.yml Drupal\error_service_test\Logger\TestLog logger, backend_overridable

Pages

Other projects