Services - 10.3.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 900
Title | File name | Summary | All service tags |
---|---|---|---|
logger.channel.default | core/ |
||
logger.channel.file | core/ |
Drupal\Core\Logger\LoggerChannel | |
logger.channel.form | core/ |
||
logger.channel.image | core/ |
||
logger.channel.jsonapi | core/ |
||
logger.channel.layout_builder | core/ |
||
logger.channel.logger_aware_test | core/ |
||
logger.channel.logger_stub | core/ |
Drupal\logger_aware_test\LoggerStub | |
logger.channel.mail | core/ |
||
logger.channel.menu | core/ |
||
logger.channel.migrate_drupal | core/ |
||
logger.channel.php | core/ |
||
logger.channel.rest | core/ |
||
logger.channel.router | core/ |
||
logger.channel.security | core/ |
||
logger.channel.system | core/ |
||
logger.channel.update | core/ |
||
logger.channel.user | core/ |
||
logger.channel.workspaces | core/ |
||
logger.channel_base | core/ |
Drupal\Core\Logger\LoggerChannel | |
logger.dblog | core/ |
Drupal\dblog\Logger\DbLog | logger, backend_overridable |
logger.factory | core/ |
Drupal\Core\Logger\LoggerChannelFactory | service_collector |
logger.log_message_parser | core/ |
Drupal\Core\Logger\LogMessageParser | |
logger.syslog | core/ |
Drupal\syslog\Logger\SysLog | logger |
logger.syslog_test | core/ |
Drupal\syslog_test\Logger\SysLogTest | logger |
logger_aware_test.logger_aware_existing | core/ |
Drupal\logger_aware_test\LoggerAwareStub | |
logger_aware_test.logger_aware_stub | core/ |
Drupal\logger_aware_test\LoggerAwareStub | |
maintenance_mode | core/ |
Drupal\Core\Site\MaintenanceMode | |
maintenance_mode_subscriber | core/ |
Drupal\Core\EventSubscriber\MaintenanceModeSubscriber | |
main_content_renderer.ajax | core/ |
Drupal\Core\Render\MainContent\AjaxRenderer | render.main_content_renderer |
main_content_renderer.dialog | core/ |
Drupal\Core\Render\MainContent\DialogRenderer | render.main_content_renderer |
main_content_renderer.extra_wide_modal | core/ |
Drupal\dialog_renderer_test\Render\MainContent\WideModalRenderer | render.main_content_renderer |
main_content_renderer.html | core/ |
Drupal\Core\Render\MainContent\HtmlRenderer | render.main_content_renderer |
main_content_renderer.json | core/ |
Drupal\common_test\Render\MainContent\JsonRenderer | render.main_content_renderer |
main_content_renderer.modal | core/ |
Drupal\Core\Render\MainContent\ModalRenderer | render.main_content_renderer |
main_content_renderer.off_canvas | core/ |
Drupal\Core\Render\MainContent\OffCanvasRenderer | render.main_content_renderer |
main_content_renderer.off_canvas_top | core/ |
Drupal\Core\Render\MainContent\OffCanvasRenderer | render.main_content_renderer |
main_content_renderer.wide_modal | core/ |
Drupal\dialog_renderer_test\Render\MainContent\WideModalRenderer | render.main_content_renderer |
main_content_view_subscriber | core/ |
Drupal\Core\EventSubscriber\MainContentViewSubscriber | |
media.config_subscriber | core/ |
Drupal\media\EventSubscriber\MediaConfigSubscriber | |
media.oembed.iframe_url_helper | core/ |
Drupal\media\IFrameUrlHelper | |
media.oembed.provider_repository | core/ |
Drupal\media\OEmbed\ProviderRepository | |
media.oembed.resource_fetcher | core/ |
Drupal\media\OEmbed\ResourceFetcher | |
media.oembed.url_resolver | core/ |
Drupal\media\OEmbed\UrlResolver | |
media_library.opener.editor | core/ |
Drupal\media_library\MediaLibraryEditorOpener | |
media_library.opener.field_widget | core/ |
Drupal\media_library\MediaLibraryFieldWidgetOpener | |
media_library.opener_resolver | core/ |
Drupal\media_library\OpenerResolver | service_collector |
media_library.route_subscriber | core/ |
Drupal\media_library\Routing\RouteSubscriber | |
media_library.ui_builder | core/ |
Drupal\media_library\MediaLibraryUiBuilder | |
media_test_embed.route_subscriber | core/ |
Drupal\media_test_embed\Routing\RouteSubscriber |
Pagination
- Previous page
- Page 16
- Next page
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.