Services - 9.5.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 905

Title File name Summary All service tags
plugin.manager.media.source core/modules/media/media.services.yml Drupal\media\MediaSourceManager
plugin.manager.menu.contextual_link core/core.services.yml Drupal\Core\Menu\ContextualLinkManager
plugin.manager.menu.link core/core.services.yml Drupal\Core\Menu\MenuLinkManager
plugin.manager.menu.local_action core/core.services.yml Drupal\Core\Menu\LocalActionManager
plugin.manager.menu.local_task core/core.services.yml Drupal\Core\Menu\LocalTaskManager
plugin.manager.migrate.destination core/modules/migrate/migrate.services.yml Drupal\migrate\Plugin\MigrateDestinationPluginManager
plugin.manager.migrate.field core/modules/migrate_drupal/migrate_drupal.services.yml Drupal\migrate_drupal\Plugin\MigrateFieldPluginManager
plugin.manager.migrate.id_map core/modules/migrate/migrate.services.yml Drupal\migrate\Plugin\MigratePluginManager
plugin.manager.migrate.process core/modules/migrate/migrate.services.yml Drupal\migrate\Plugin\MigratePluginManager
plugin.manager.migrate.source core/modules/migrate/migrate.services.yml Drupal\migrate\Plugin\MigrateSourcePluginManager
plugin.manager.migration core/modules/migrate/migrate.services.yml Drupal\migrate\Plugin\MigrationPluginManager
plugin.manager.module_test.cache_clear_test core/modules/system/tests/modules/module_test/module_test.services.yml Drupal\module_test\PluginManagerCacheClearer plugin_manager_cache_clear
plugin.manager.queue_worker core/core.services.yml Drupal\Core\Queue\QueueWorkerManager
plugin.manager.quickedit.editor core/modules/quickedit/quickedit.services.yml Drupal\quickedit\Plugin\InPlaceEditorManager
plugin.manager.rest core/modules/rest/rest.services.yml Drupal\rest\Plugin\Type\ResourcePluginManager
plugin.manager.search core/modules/search/search.services.yml Drupal\search\SearchPluginManager
plugin.manager.tour.tip core/modules/tour/tour.services.yml Drupal\tour\TipPluginManager
plugin.manager.views.access core/modules/views/views.services.yml Drupal\views\Plugin\ViewsPluginManager
plugin.manager.views.area core/modules/views/views.services.yml Drupal\views\Plugin\ViewsHandlerManager
plugin.manager.views.argument core/modules/views/views.services.yml Drupal\views\Plugin\ViewsHandlerManager
plugin.manager.views.argument_default core/modules/views/views.services.yml Drupal\views\Plugin\ViewsPluginManager
plugin.manager.views.argument_validator core/modules/views/views.services.yml Drupal\views\Plugin\ViewsPluginManager
plugin.manager.views.cache core/modules/views/views.services.yml Drupal\views\Plugin\ViewsPluginManager
plugin.manager.views.display core/modules/views/views.services.yml Drupal\views\Plugin\ViewsPluginManager
plugin.manager.views.display_extender core/modules/views/views.services.yml Drupal\views\Plugin\ViewsPluginManager
plugin.manager.views.exposed_form core/modules/views/views.services.yml Drupal\views\Plugin\ViewsPluginManager
plugin.manager.views.field core/modules/views/views.services.yml Drupal\views\Plugin\ViewsHandlerManager
plugin.manager.views.filter core/modules/views/views.services.yml Drupal\views\Plugin\ViewsHandlerManager
plugin.manager.views.join core/modules/views/views.services.yml Drupal\views\Plugin\ViewsHandlerManager
plugin.manager.views.pager core/modules/views/views.services.yml Drupal\views\Plugin\ViewsPluginManager
plugin.manager.views.query core/modules/views/views.services.yml Drupal\views\Plugin\ViewsPluginManager
plugin.manager.views.relationship core/modules/views/views.services.yml Drupal\views\Plugin\ViewsHandlerManager
plugin.manager.views.row core/modules/views/views.services.yml Drupal\views\Plugin\ViewsPluginManager
plugin.manager.views.sort core/modules/views/views.services.yml Drupal\views\Plugin\ViewsHandlerManager
plugin.manager.views.style core/modules/views/views.services.yml Drupal\views\Plugin\ViewsPluginManager
plugin.manager.views.wizard core/modules/views/views.services.yml Drupal\views\Plugin\ViewsPluginManager
plugin.manager.workflows.type core/modules/workflows/workflows.services.yml Drupal\workflows\WorkflowTypeManager plugin_manager_cache_clear
plugin_form.factory core/core.services.yml Drupal\Core\Plugin\PluginFormFactory
private_key core/core.services.yml Drupal\Core\PrivateKey
psr17.response_factory core/core.services.yml Laminas\Diactoros\ResponseFactory
psr17.server_request_factory core/core.services.yml Laminas\Diactoros\ServerRequestFactory
psr17.stream_factory core/core.services.yml Laminas\Diactoros\StreamFactory
psr17.uploaded_file_factory core/core.services.yml Laminas\Diactoros\UploadedFileFactory
psr7.http_foundation_factory core/core.services.yml Symfony\Bridge\PsrHttpMessage\Factory\HttpFoundationFactory
psr7.http_message_factory core/core.services.yml Symfony\Bridge\PsrHttpMessage\Factory\PsrHttpFactory
psr_response_view_subscriber core/core.services.yml Drupal\Core\EventSubscriber\PsrResponseSubscriber event_subscriber
queue core/core.services.yml Drupal\Core\Queue\QueueFactory
queue.database core/core.services.yml Drupal\Core\Queue\QueueDatabaseFactory
quickedit.editor.selector core/modules/quickedit/quickedit.services.yml Drupal\quickedit\EditorSelector
quickedit.metadata.generator core/modules/quickedit/quickedit.services.yml Drupal\quickedit\MetadataGenerator

Other projects


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