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\File\FileSystemInterface core/core.services.yml
Drupal\Core\File\FileUrlGeneratorInterface core/core.services.yml
Drupal\Core\File\HtaccessWriterInterface core/core.services.yml
Drupal\Core\Flood\FloodInterface core/core.services.yml
Drupal\Core\Form\FormAjaxResponseBuilderInterface core/core.services.yml
Drupal\Core\Form\FormBuilderInterface core/core.services.yml
Drupal\Core\Form\FormCacheInterface core/core.services.yml
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

Other projects


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