Services - 11.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
node_preview core/modules/node/node.services.yml Drupal\node\ParamConverter\NodePreviewConverter paramconverter
paramconverter.jsonapi.entity_uuid core/modules/jsonapi/jsonapi.services.yml Drupal\jsonapi\ParamConverter\EntityUuidConverter paramconverter
paramconverter.jsonapi.resource_type core/modules/jsonapi/jsonapi.services.yml Drupal\jsonapi\ParamConverter\ResourceTypeConverter paramconverter
paramconverter.views_ui core/modules/views_ui/views_ui.services.yml Drupal\views_ui\ParamConverter\ViewUIConverter paramconverter
password core/modules/user/tests/modules/user_custom_pass_hash_params_test/user_custom_pass_hash_params_test.services.yml Drupal\Core\Password\PhpPassword
path_alias.manager core/modules/path_alias/path_alias.services.yml Drupal\path_alias\AliasManager
path_alias.path_processor core/modules/path_alias/path_alias.services.yml Drupal\path_alias\PathProcessor\AliasPathProcessor path_processor_inbound, path_processor_outbound
path_alias.prefix_list core/modules/path_alias/path_alias.services.yml Drupal\path_alias\AliasPrefixList needs_destruction
path_alias.repository core/modules/path_alias/path_alias.services.yml Drupal\path_alias\AliasRepository backend_overridable
path_alias.subscriber core/modules/path_alias/path_alias.services.yml Drupal\path_alias\EventSubscriber\PathAliasSubscriber
path_alias.whitelist core/modules/path_alias/path_alias.services.yml Drupal\path_alias\AliasWhitelist needs_destruction
path_processor.files core/modules/system/system.services.yml Drupal\system\PathProcessor\PathProcessorFiles path_processor_inbound
path_processor.image_styles core/modules/image/image.services.yml Drupal\image\PathProcessor\PathProcessorImageStyles path_processor_inbound
performance_test.cache_factory core/modules/system/tests/modules/performance_test/performance_test.services.yml Drupal\performance_test\Cache\CacheFactoryDecorator
performance_test.cache_tags.invalidator.checksum core/modules/system/tests/modules/performance_test/performance_test.services.yml Drupal\performance_test\Cache\CacheTagsChecksumDecorator
pgsql.views.date_sql core/modules/views/views.services.yml Drupal\views\Plugin\views\query\PostgresqlDateSql
pgsql.workspaces.entity.query.sql core/modules/workspaces/workspaces.services.yml Drupal\workspaces\EntityQuery\PgsqlQueryFactory
phpass.password core/modules/phpass/phpass.services.yml Drupal\phpass\Password\PhpassHashedPassword
placeholder_strategy.big_pipe core/modules/big_pipe/big_pipe.services.yml Drupal\big_pipe\Render\Placeholder\BigPipeStrategy placeholder_strategy
plugin.manager.ckeditor5.plugin core/modules/ckeditor5/ckeditor5.services.yml Drupal\ckeditor5\Plugin\CKEditor5PluginManager
plugin.manager.config_translation.mapper core/modules/config_translation/config_translation.services.yml Drupal\config_translation\ConfigMapperManager
plugin.manager.core.layout core/modules/layout_discovery/layout_discovery.services.yml Drupal\Core\Layout\LayoutPluginManager
plugin.manager.editor core/modules/editor/editor.services.yml Drupal\editor\Plugin\EditorManager
plugin.manager.filter core/modules/filter/filter.services.yml Drupal\filter\FilterPluginManager
plugin.manager.help_section core/modules/help/help.services.yml Drupal\help\HelpSectionManager plugin_manager_cache_clear
plugin.manager.help_topic core/modules/help/help.services.yml Drupal\help\HelpTopicPluginManager
plugin.manager.image.effect core/modules/image/image.services.yml Drupal\image\ImageEffectManager
plugin.manager.language_negotiation_method core/modules/language/language.services.yml Drupal\language\LanguageNegotiationMethodManager
plugin.manager.layout_builder.section_storage core/modules/layout_builder/layout_builder.services.yml Drupal\layout_builder\SectionStorage\SectionStorageManager
plugin.manager.lazy_route_provider_install_test core/modules/system/tests/modules/lazy_route_provider_install_test/lazy_route_provider_install_test.services.yml \Drupal\lazy_route_provider_install_test\PluginManager
plugin.manager.media.source core/modules/media/media.services.yml Drupal\media\MediaSourceManager
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.rest core/modules/rest/rest.services.yml Drupal\rest\Plugin\Type\ResourcePluginManager
plugin.manager.sdc core/modules/sdc/sdc.services.yml Drupal\sdc\ComponentPluginManager
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

Other projects


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