You are here

Services in Drupal 10

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
paramconverter.entity core/core.services.yml Drupal\Core\ParamConverter\EntityConverter paramconverter
paramconverter.entity_revision core/core.services.yml Drupal\Core\ParamConverter\EntityRevisionParamConverter 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.menu_link core/core.services.yml Drupal\Core\ParamConverter\MenuLinkPluginConverter paramconverter
paramconverter.views_ui core/modules/views_ui/views_ui.services.yml Drupal\views_ui\ParamConverter\ViewUIConverter paramconverter
paramconverter_manager core/core.services.yml Drupal\Core\ParamConverter\ParamConverterManager service_collector
paramconverter_subscriber core/core.services.yml Drupal\Core\EventSubscriber\ParamConverterSubscriber event_subscriber
password core/modules/user/tests/modules/user_custom_phpass_params_test/user_custom_phpass_params_test.services.yml Drupal\Core\Password\PhpassHashedPassword
password core/core.services.yml Drupal\Core\Password\PhpassHashedPassword
password_generator core/core.services.yml Drupal\Core\Password\DefaultPasswordGenerator
path.current core/core.services.yml Drupal\Core\Path\CurrentPathStack
path.matcher core/core.services.yml Drupal\Core\Path\PathMatcher
path.validator core/core.services.yml Drupal\Core\Path\PathValidator
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.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 event_subscriber
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
path_processor_decode core/core.services.yml Drupal\Core\PathProcessor\PathProcessorDecode path_processor_inbound
path_processor_front core/core.services.yml Drupal\Core\PathProcessor\PathProcessorFront path_processor_inbound
path_processor_manager core/core.services.yml Drupal\Core\PathProcessor\PathProcessorManager service_collector
pgsql.entity.query.sql core/core.services.yml Drupal\Core\Entity\Query\Sql\pgsql\QueryFactory
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
placeholder_strategy core/core.services.yml Drupal\Core\Render\Placeholder\ChainedPlaceholderStrategy service_collector
placeholder_strategy.big_pipe core/modules/big_pipe/big_pipe.services.yml Drupal\big_pipe\Render\Placeholder\BigPipeStrategy placeholder_strategy
placeholder_strategy.single_flush core/core.services.yml Drupal\Core\Render\Placeholder\SingleFlushStrategy placeholder_strategy
plugin.cache_clearer core/core.services.yml Drupal\Core\Plugin\CachedDiscoveryClearer
plugin.manager.action core/core.services.yml Drupal\Core\Action\ActionManager
plugin.manager.archiver core/core.services.yml Drupal\Core\Archiver\ArchiverManager
plugin.manager.block core/core.services.yml Drupal\Core\Block\BlockManager
plugin.manager.ckeditor.plugin core/modules/ckeditor/ckeditor.services.yml Drupal\ckeditor\CKEditorPluginManager
plugin.manager.ckeditor4to5upgrade.plugin core/modules/ckeditor5/ckeditor5.services.yml Drupal\ckeditor5\Plugin\CKEditor4To5UpgradePluginManager
plugin.manager.ckeditor5.plugin core/modules/ckeditor5/ckeditor5.services.yml Drupal\ckeditor5\Plugin\CKEditor5PluginManager
plugin.manager.condition core/core.services.yml Drupal\Core\Condition\ConditionManager
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.display_variant core/core.services.yml Drupal\Core\Display\VariantManager
plugin.manager.editor core/modules/editor/editor.services.yml Drupal\editor\Plugin\EditorManager
plugin.manager.element_info core/core.services.yml Drupal\Core\Render\ElementInfoManager
plugin.manager.entity_reference_selection core/core.services.yml Drupal\Core\Entity\EntityReferenceSelection\SelectionPluginManager
plugin.manager.field.field_type core/core.services.yml Drupal\Core\Field\FieldTypePluginManager
plugin.manager.field.formatter core/core.services.yml Drupal\Core\Field\FormatterPluginManager
plugin.manager.field.widget core/core.services.yml Drupal\Core\Field\WidgetPluginManager
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.help_section_topics core/modules/help_topics/help_topics.services.yml Drupal\help_topics\HelpSectionManager plugin_manager_cache_clear

Pages

Other projects