Services - 8.9.x - drupal
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
File
-
core/
core.api.php, line 893
Title | File name | Summary | All service tags |
---|---|---|---|
cache_tags.invalidator | core/ |
Drupal\Core\Cache\CacheTagsInvalidator | service_collector |
cache_tags.invalidator.checksum | core/ |
Drupal\Core\Cache\DatabaseCacheTagsChecksum | cache_tags_invalidator |
class_resolver | core/ |
Drupal\Core\DependencyInjection\ClassResolver | |
client_error_response_subscriber | core/ |
Drupal\Core\EventSubscriber\ClientErrorResponseSubscriber | event_subscriber |
color.config_cache_invalidator | core/ |
Drupal\color\EventSubscriber\ColorConfigCacheInvalidator | event_subscriber |
comment.breadcrumb | core/ |
Drupal\comment\CommentBreadcrumbBuilder | breadcrumb_builder |
comment.lazy_builders | core/ |
Drupal\comment\CommentLazyBuilders | |
comment.link_builder | core/ |
Drupal\comment\CommentLinkBuilder | |
comment.manager | core/ |
Drupal\comment\CommentManager | |
comment.statistics | core/ |
Drupal\comment\CommentStatistics | backend_overridable |
config.config_subscriber | core/ |
Drupal\config\ConfigSubscriber | event_subscriber |
config.factory | core/ |
Drupal\Core\Config\ConfigFactory | event_subscriber, service_collector |
config.importer_subscriber | core/ |
Drupal\Core\Config\Importer\FinalMissingContentSubscriber | event_subscriber |
config.import_transformer | core/ |
Drupal\Core\Config\ImportStorageTransformer | |
config.installer | core/ |
Drupal\Core\Config\ConfigInstaller | |
config.manager | core/ |
Drupal\Core\Config\ConfigManager | |
config.storage | core/ |
Drupal\Core\Config\CachedStorage | |
config.storage.active | core/ |
Drupal\Core\Config\DatabaseStorage | backend_overridable |
config.storage.export | core/ |
Drupal\Core\Config\ManagedStorage | |
config.storage.export.manager | core/ |
Drupal\Core\Config\ExportStorageManager | |
config.storage.schema | core/ |
Drupal\Core\Config\ExtensionInstallStorage | |
config.storage.snapshot | core/ |
Drupal\Core\Config\DatabaseStorage | backend_overridable |
config.storage.staging | core/ |
Drupal\Core\Config\FileStorage | |
config.storage.sync | core/ |
Alias of config.storage.staging | |
config.typed | core/ |
Drupal\Core\Config\TypedConfigManager | plugin_manager_cache_clear |
config_events_test.event_subscriber | core/ |
Drupal\config_events_test\EventSubscriber | event_subscriber |
config_events_test.event_subscriber | core/ |
Drupal\config_collection_install_test\EventSubscriber | event_subscriber |
config_exclude_modules_subscriber | core/ |
Drupal\Core\EventSubscriber\ExcludedModulesEventSubscriber | event_subscriber |
config_import_subscriber | core/ |
Drupal\Core\EventSubscriber\ConfigImportSubscriber | event_subscriber |
config_import_test.event_subscriber | core/ |
Drupal\config_import_test\EventSubscriber | event_subscriber |
config_override_integration_test.config_override | core/ |
Drupal\config_override_integration_test\CacheabilityMetadataConfigOverride | config.factory.override |
config_override_test.low_priority_overrider | core/ |
Drupal\config_override_test\ConfigOverriderLowPriority | config.factory.override |
config_override_test.overrider | core/ |
Drupal\config_override_test\ConfigOverrider | config.factory.override |
config_override_test.pirate_day_cacheability_metadata_override | core/ |
Drupal\config_override_test\PirateDayCacheabilityMetadataConfigOverride | config.factory.override |
config_snapshot_subscriber | core/ |
Drupal\Core\EventSubscriber\ConfigSnapshotSubscriber | event_subscriber |
config_transformer_test.event_subscriber | core/ |
Drupal\config_transformer_test\EventSubscriber | event_subscriber |
config_translation.access.form | core/ |
Drupal\config_translation\Access\ConfigTranslationFormAccess | access_check |
config_translation.access.overview | core/ |
Drupal\config_translation\Access\ConfigTranslationOverviewAccess | access_check |
config_translation.route_subscriber | core/ |
Drupal\config_translation\Routing\RouteSubscriber | event_subscriber |
config_translation_test_event_subscriber | core/ |
Drupal\config_translation_test\EventSubscriber\ConfigTranslationTestSubscriber | event_subscriber |
contact.mail_handler | core/ |
Drupal\contact\MailHandler | |
container.namespaces | core/ |
ArrayObject | |
container.trait | core/ |
Abstract | |
content_moderation.config_import_subscriber | core/ |
Drupal\content_moderation\EventSubscriber\ConfigImportSubscriber | event_subscriber |
content_moderation.moderation_information | core/ |
Drupal\content_moderation\ModerationInformation | |
content_moderation.route_subscriber | core/ |
Drupal\content_moderation\Routing\ContentModerationRouteSubscriber | event_subscriber |
content_moderation.state_transition_validation | core/ |
\Drupal\content_moderation\StateTransitionValidation | |
content_translation.delete_access | core/ |
Drupal\content_translation\Access\ContentTranslationDeleteAccess | access_check |
content_translation.manager | core/ |
Drupal\content_translation\ContentTranslationManager | |
content_translation.manage_access | core/ |
Drupal\content_translation\Access\ContentTranslationManageAccessCheck | access_check |
Pagination
- Previous page
- Page 4
- Next page
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.