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\Core\Config\ConfigManagerInterface core/core.services.yml
Drupal\Core\Config\ImportStorageTransformer core/core.services.yml
Drupal\Core\Config\StorageCacheInterface core/core.services.yml
Drupal\Core\Config\StorageManagerInterface core/core.services.yml
Drupal\Core\Config\TypedConfigManagerInterface core/core.services.yml
Drupal\Core\Controller\ControllerResolverInterface core/core.services.yml
Drupal\Core\Controller\HtmlFormController core/core.services.yml
Drupal\Core\Controller\TitleResolverInterface core/core.services.yml
Drupal\Core\CronInterface core/core.services.yml
Drupal\Core\Database\Connection core/core.services.yml
Drupal\Core\Database\EventSubscriber\StatementExecutionSubscriber core/core.services.yml
Drupal\Core\Database\ReplicaKillSwitch core/core.services.yml
Drupal\Core\Datetime\DateFormatterInterface core/core.services.yml
Drupal\Core\DefaultContent\AdminAccountSwitcher core/core.services.yml
Drupal\Core\DefaultContent\Importer core/core.services.yml
Drupal\Core\DependencyInjection\ClassResolverInterface core/core.services.yml
Drupal\Core\Diff\DiffFormatter core/core.services.yml
Drupal\Core\Entity\EntityAutocompleteMatcherInterface core/core.services.yml
Drupal\Core\Entity\EntityBundleListenerInterface core/core.services.yml
Drupal\Core\Entity\EntityDefinitionUpdateManagerInterface core/core.services.yml
Drupal\Core\Entity\EntityDisplayRepositoryInterface core/core.services.yml
Drupal\Core\Entity\EntityFieldManagerInterface core/core.services.yml
Drupal\Core\Entity\EntityFormBuilderInterface core/core.services.yml
Drupal\Core\Entity\EntityLastInstalledSchemaRepositoryInterface core/core.services.yml
Drupal\Core\Entity\EntityReferenceSelection\SelectionPluginManagerInterface core/core.services.yml
Drupal\Core\Entity\EntityRepositoryInterface core/core.services.yml
Drupal\Core\Entity\EntityResolverManager core/core.services.yml
Drupal\Core\Entity\EntityTypeBundleInfoInterface core/core.services.yml
Drupal\Core\Entity\EntityTypeListenerInterface core/core.services.yml
Drupal\Core\Entity\EntityTypeManagerInterface core/core.services.yml
Drupal\Core\Entity\EntityTypeRepositoryInterface core/core.services.yml
Drupal\Core\Entity\HtmlEntityFormController core/core.services.yml
Drupal\Core\EventSubscriber\CsrfExceptionSubscriber core/core.services.yml
Drupal\Core\Executable\ExecutableManagerInterface core/core.services.yml
Drupal\Core\Extension\DatabaseDriverList core/core.services.yml
Drupal\Core\Extension\ExtensionPathResolver core/core.services.yml
Drupal\Core\Extension\InfoParserInterface core/core.services.yml
Drupal\Core\Extension\ModuleExtensionList core/core.services.yml
Drupal\Core\Extension\ModuleHandlerInterface core/core.services.yml
Drupal\Core\Extension\ModuleInstallerInterface core/core.services.yml
Drupal\Core\Extension\ProfileExtensionList core/core.services.yml
Drupal\Core\Extension\ThemeEngineExtensionList core/core.services.yml
Drupal\Core\Extension\ThemeExtensionList core/core.services.yml
Drupal\Core\Extension\ThemeHandlerInterface core/core.services.yml
Drupal\Core\Extension\ThemeInstallerInterface core/core.services.yml
Drupal\Core\Field\DeletedFieldsRepositoryInterface core/core.services.yml
Drupal\Core\Field\FieldDefinitionListenerInterface core/core.services.yml
Drupal\Core\Field\FieldStorageDefinitionListenerInterface core/core.services.yml
Drupal\Core\Field\FieldTypeCategoryManagerInterface core/core.services.yml
Drupal\Core\Field\FieldTypePluginManagerInterface core/core.services.yml

Other projects


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