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
asset.js.optimizer core/core.services.yml Drupal\Core\Asset\JsOptimizer
asset.resolver core/core.services.yml Drupal\Core\Asset\AssetResolver
authentication core/core.services.yml Drupal\Core\Authentication\AuthenticationManager
authentication_collector core/core.services.yml Drupal\Core\Authentication\AuthenticationCollector service_collector
authentication_subscriber core/core.services.yml Drupal\Core\EventSubscriber\AuthenticationSubscriber event_subscriber
automated_cron.subscriber core/modules/automated_cron/automated_cron.services.yml Drupal\automated_cron\EventSubscriber\AutomatedCron event_subscriber
ban.ip_manager core/modules/ban/ban.services.yml Drupal\ban\BanIpManager backend_overridable
ban.middleware core/modules/ban/ban.services.yml Drupal\ban\BanMiddleware http_middleware
bare_html_page_renderer core/core.services.yml Drupal\Core\Render\BareHtmlPageRenderer
basic_auth.authentication.basic_auth core/modules/basic_auth/basic_auth.services.yml Drupal\basic_auth\Authentication\Provider\BasicAuth authentication_provider
basic_auth.page_cache_request_policy.disallow_basic_auth_requests core/modules/basic_auth/basic_auth.services.yml Drupal\basic_auth\PageCache\DisallowBasicAuthRequests page_cache_request_policy
batch.storage core/core.services.yml Drupal\Core\Batch\BatchStorage backend_overridable
big_pipe core/modules/big_pipe/big_pipe.services.yml Drupal\big_pipe\Render\BigPipe
big_pipe_test_subscriber core/modules/big_pipe/tests/modules/big_pipe_test/big_pipe_test.services.yml Drupal\big_pipe_test\EventSubscriber\BigPipeTestSubscriber event_subscriber
block.page_display_variant_subscriber core/modules/block/block.services.yml Drupal\block\EventSubscriber\BlockPageDisplayVariantSubscriber event_subscriber
block.repository core/modules/block/block.services.yml Drupal\block\BlockRepository
block_content.uuid_lookup core/modules/block_content/block_content.services.yml \Drupal\block_content\BlockContentUuidLookup needs_destruction
block_place.page_display_variant_subscriber.block core/modules/block_place/block_place.services.yml Drupal\block_place\EventSubscriber\BlockPlaceEventSubscriber event_subscriber
block_test.multiple_static_context core/modules/block/tests/modules/block_test/block_test.services.yml Drupal\block_test\ContextProvider\MultipleStaticContext context_provider
book.breadcrumb core/modules/book/book.services.yml Drupal\book\BookBreadcrumbBuilder breadcrumb_builder
book.export core/modules/book/book.services.yml Drupal\book\BookExport
book.manager core/modules/book/book.services.yml Drupal\book\BookManager
book.outline core/modules/book/book.services.yml Drupal\book\BookOutline
book.outline_storage core/modules/book/book.services.yml Drupal\book\BookOutlineStorage backend_overridable
book.uninstall_validator core/modules/book/book.services.yml Drupal\book\BookUninstallValidator module_install.uninstall_validator
breadcrumb core/core.services.yml Drupal\Core\Breadcrumb\BreadcrumbManager service_collector
breakpoint.manager core/modules/breakpoint/breakpoint.services.yml Drupal\breakpoint\BreakpointManager plugin_manager_cache_clear
broken_class_with_missing_dependency core/modules/system/tests/modules/error_service_test/error_service_test.services.yml Drupal\error_service_test\LonelyMonkeyClass
cache.backend.apcu core/core.services.yml Drupal\Core\Cache\ApcuBackendFactory
cache.backend.chainedfast core/core.services.yml Drupal\Core\Cache\ChainedFastBackendFactory
cache.backend.database core/core.services.yml Drupal\Core\Cache\DatabaseBackendFactory
cache.backend.memory core/core.services.yml Drupal\Core\Cache\MemoryBackendFactory
cache.backend.null sites/development.services.yml Drupal\Core\Cache\NullBackendFactory
cache.backend.php core/core.services.yml Drupal\Core\Cache\PhpBackendFactory
cache.bootstrap core/core.services.yml Drupal\Core\Cache\CacheBackendInterface cache.bin
cache.config core/core.services.yml Drupal\Core\Cache\CacheBackendInterface cache.bin
cache.data core/core.services.yml Drupal\Core\Cache\CacheBackendInterface cache.bin
cache.default core/core.services.yml Drupal\Core\Cache\CacheBackendInterface cache.bin
cache.discovery core/core.services.yml Drupal\Core\Cache\CacheBackendInterface cache.bin
cache.discovery_migration core/modules/migrate/migrate.services.yml Drupal\Core\Cache\CacheBackendInterface cache.bin
cache.dynamic_page_cache core/modules/dynamic_page_cache/dynamic_page_cache.services.yml Drupal\Core\Cache\CacheBackendInterface cache.bin
cache.entity core/core.services.yml Drupal\Core\Cache\CacheBackendInterface cache.bin
cache.menu core/core.services.yml Drupal\Core\Cache\CacheBackendInterface cache.bin
cache.migrate core/modules/migrate/migrate.services.yml Drupal\Core\Cache\CacheBackendInterface cache.bin
cache.page core/modules/page_cache/page_cache.services.yml Drupal\Core\Cache\CacheBackendInterface cache.bin
cache.render core/core.services.yml Drupal\Core\Cache\CacheBackendInterface cache.bin
cache.rest core/modules/rest/rest.services.yml Drupal\Core\Cache\CacheBackendInterface cache.bin
cache.static core/core.services.yml Drupal\Core\Cache\CacheBackendInterface cache.bin
cache.toolbar core/modules/toolbar/toolbar.services.yml Drupal\Core\Cache\CacheBackendInterface cache.bin
cache_context.config_override_integration_test core/modules/config/tests/config_override_integration_test/config_override_integration_test.services.yml Drupal\config_override_integration_test\Cache\ConfigOverrideIntegrationTestCacheContext cache.context

Pages

Other projects