Services - 10.3.x - drupal

Primary tabs

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\book\BookExport core/modules/book/book.services.yml
Drupal\book\BookManagerInterface core/modules/book/book.services.yml
Drupal\book\BookOutline core/modules/book/book.services.yml
Drupal\book\BookOutlineStorageInterface core/modules/book/book.services.yml
Drupal\breakpoint\BreakpointManagerInterface core/modules/breakpoint/breakpoint.services.yml
Drupal\ckeditor5\CKEditor5StylesheetsMessage core/modules/ckeditor5/ckeditor5.services.yml
Drupal\ckeditor5\Plugin\CKEditor5PluginManagerInterface core/modules/ckeditor5/ckeditor5.services.yml
Drupal\ckeditor5\SmartDefaultSettings core/modules/ckeditor5/ckeditor5.services.yml
Drupal\comment\CommentLazyBuilders core/modules/comment/comment.services.yml
Drupal\comment\CommentLinkBuilderInterface core/modules/comment/comment.services.yml
Drupal\comment\CommentManagerInterface core/modules/comment/comment.services.yml
Drupal\comment\CommentStatisticsInterface core/modules/comment/comment.services.yml
Drupal\Component\Datetime\TimeInterface core/core.services.yml
Drupal\Component\DependencyInjection\ReverseContainer core/core.services.yml
Drupal\Component\Serialization\ObjectAwareSerializationInterface core/core.services.yml
Drupal\Component\Utility\EmailValidatorInterface core/core.services.yml
Drupal\Component\Uuid\UuidInterface core/core.services.yml
Drupal\config_translation\ConfigMapperManagerInterface core/modules/config_translation/config_translation.services.yml
Drupal\contact\MailHandlerInterface core/modules/contact/contact.services.yml
Drupal\content_moderation\ModerationInformationInterface core/modules/content_moderation/content_moderation.services.yml
Drupal\content_moderation\StateTransitionValidationInterface core/modules/content_moderation/content_moderation.services.yml
Drupal\content_translation\BundleTranslationSettingsInterface core/modules/content_translation/content_translation.services.yml
Drupal\content_translation\ContentTranslationManagerInterface core/modules/content_translation/content_translation.services.yml
Drupal\content_translation\FieldTranslationSynchronizerInterface core/modules/content_translation/content_translation.services.yml
Drupal\Core\Access\AccessArgumentsResolverFactoryInterface core/core.services.yml
Drupal\Core\Access\AccessManagerInterface core/core.services.yml
Drupal\Core\Access\CheckProviderInterface core/core.services.yml
Drupal\Core\Access\CsrfTokenGenerator core/core.services.yml
Drupal\Core\Asset\AssetQueryStringInterface core/core.services.yml
Drupal\Core\Asset\AssetResolverInterface core/core.services.yml
Drupal\Core\Asset\LibrariesDirectoryFileFinder core/core.services.yml
Drupal\Core\Asset\LibraryDependencyResolverInterface core/core.services.yml
Drupal\Core\Asset\LibraryDiscoveryInterface core/core.services.yml
Drupal\Core\Asset\LibraryDiscoveryParser core/core.services.yml
Drupal\Core\Authentication\AuthenticationCollectorInterface core/core.services.yml
Drupal\Core\Authentication\AuthenticationProviderInterface core/core.services.yml
Drupal\Core\Batch\BatchStorageInterface core/core.services.yml
Drupal\Core\Block\BlockManagerInterface core/core.services.yml
Drupal\Core\Breadcrumb\ChainBreadcrumbBuilderInterface core/core.services.yml
Drupal\Core\Cache\CacheFactoryInterface core/core.services.yml
Drupal\Core\Cache\CacheTagsChecksumInterface core/core.services.yml
Drupal\Core\Cache\CacheTagsInvalidatorInterface core/core.services.yml
Drupal\Core\Cache\Context\CacheContextsManager core/core.services.yml
Drupal\Core\Cache\MemoryCache\MemoryCacheInterface core/core.services.yml
Drupal\Core\Cache\VariationCacheFactory core/core.services.yml
Drupal\Core\Config\Checkpoint\CheckpointListInterface core/core.services.yml
Drupal\Core\Config\Checkpoint\CheckpointStorageInterface core/core.services.yml
Drupal\Core\Config\ConfigFactoryInterface core/core.services.yml
Drupal\Core\Config\ConfigFactoryOverrideInterface core/modules/language/language.services.yml
Drupal\Core\Config\ConfigInstallerInterface core/core.services.yml

Other projects


Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.