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

Namesort descending File Class Tags
Drupal\Core\Form\FormErrorHandlerInterface core/core.services.yml
Drupal\Core\Form\FormSubmitterInterface core/core.services.yml
Drupal\Core\Form\FormValidatorInterface core/core.services.yml
Drupal\Core\Http\ClientFactory core/core.services.yml
Drupal\Core\Http\HandlerStackConfigurator core/core.services.yml
Drupal\Core\ImageToolkit\ImageToolkitManager core/core.services.yml
Drupal\Core\ImageToolkit\ImageToolkitOperationManagerInterface core/core.services.yml
Drupal\Core\Image\ImageFactory core/core.services.yml
Drupal\Core\Language\LanguageDefault core/core.services.yml
Drupal\Core\Language\LanguageManagerInterface core/core.services.yml
Drupal\Core\Layout\Icon\IconBuilderInterface core/modules/layout_discovery/layout_discovery.services.yml
Drupal\Core\Layout\LayoutPluginManagerInterface core/modules/layout_discovery/layout_discovery.services.yml
Drupal\Core\Locale\CountryManagerInterface core/core.services.yml
Drupal\Core\Logger\LoggerChannelFactoryInterface core/core.services.yml
Drupal\Core\Logger\LogMessageParserInterface core/core.services.yml
Drupal\Core\Mail\MailManagerInterface core/core.services.yml
Drupal\Core\Menu\ContextualLinkManagerInterface core/core.services.yml
Drupal\Core\Menu\DefaultMenuLinkTreeManipulators core/core.services.yml
Drupal\Core\Menu\LocalActionManagerInterface core/core.services.yml
Drupal\Core\Menu\LocalTaskManagerInterface core/core.services.yml
Drupal\Core\Menu\MenuActiveTrailInterface core/core.services.yml
Drupal\Core\Menu\MenuLinkManagerInterface core/core.services.yml
Drupal\Core\Menu\MenuLinkTreeInterface core/core.services.yml
Drupal\Core\Menu\MenuParentFormSelectorInterface core/core.services.yml
Drupal\Core\Menu\MenuTreeStorageInterface core/core.services.yml
Drupal\Core\Menu\StaticMenuLinkOverridesInterface core/core.services.yml
Drupal\Core\Messenger\MessengerInterface core/core.services.yml
Drupal\Core\PageCache\RequestPolicyInterface core/core.services.yml
Drupal\Core\PageCache\ResponsePolicyInterface core/core.services.yml
Drupal\Core\PageCache\ResponsePolicy\KillSwitch core/core.services.yml
Drupal\Core\Pager\PagerManagerInterface core/core.services.yml
Drupal\Core\Pager\PagerParametersInterface core/core.services.yml
Drupal\Core\ParamConverter\ParamConverterManagerInterface core/core.services.yml
Drupal\Core\Password\PasswordGeneratorInterface core/core.services.yml
Drupal\Core\Password\PasswordInterface core/core.services.yml
Drupal\Core\PathProcessor\InboundPathProcessorInterface core/core.services.yml
Drupal\Core\PathProcessor\OutboundPathProcessorInterface core/core.services.yml
Drupal\Core\Path\CurrentPathStack core/core.services.yml
Drupal\Core\Path\PathMatcherInterface core/core.services.yml
Drupal\Core\Path\PathValidatorInterface core/core.services.yml
Drupal\Core\Plugin\CachedDiscoveryClearerInterface core/core.services.yml
Drupal\Core\Plugin\Context\ContextHandlerInterface core/core.services.yml
Drupal\Core\Plugin\Context\ContextRepositoryInterface core/core.services.yml
Drupal\Core\Plugin\PluginFormFactoryInterface core/core.services.yml
Drupal\Core\PrivateKey core/core.services.yml
Drupal\Core\Queue\QueueDatabaseFactory core/core.services.yml
Drupal\Core\Queue\QueueFactory core/core.services.yml
Drupal\Core\Queue\QueueWorkerManagerInterface core/core.services.yml
Drupal\Core\Render\BareHtmlPageRendererInterface core/core.services.yml
Drupal\Core\Render\ElementInfoManagerInterface core/core.services.yml

Pages

Other projects