Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x

Services - Drupal 11.1.x - Drupal Core

Primary tabs

  • Drupal 11.1.x

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
media.config_subscriber core/modules/media/media.services.yml Drupal\media\EventSubscriber\MediaConfigSubscriber
media.oembed.iframe_url_helper core/modules/media/media.services.yml Drupal\media\IFrameUrlHelper
media.oembed.provider_repository core/modules/media/media.services.yml Drupal\media\OEmbed\ProviderRepository
media.oembed.resource_fetcher core/modules/media/media.services.yml Drupal\media\OEmbed\ResourceFetcher
media.oembed.url_resolver core/modules/media/media.services.yml Drupal\media\OEmbed\UrlResolver
media_library.opener.editor core/modules/media_library/media_library.services.yml Drupal\media_library\MediaLibraryEditorOpener
media_library.opener.field_widget core/modules/media_library/media_library.services.yml Drupal\media_library\MediaLibraryFieldWidgetOpener
media_library.opener_resolver core/modules/media_library/media_library.services.yml Drupal\media_library\OpenerResolver service_collector
media_library.route_subscriber core/modules/media_library/media_library.services.yml Drupal\media_library\Routing\RouteSubscriber
media_library.ui_builder core/modules/media_library/media_library.services.yml Drupal\media_library\MediaLibraryUiBuilder
menu_ui.menu_tree_manipulators core/modules/menu_ui/menu_ui.services.yml Drupal\menu_ui\Menu\MenuUiMenuTreeManipulators
method_filter.jsonapi core/modules/jsonapi/jsonapi.services.yml Drupal\jsonapi\Routing\ReadOnlyModeMethodFilter
migrate.lookup core/modules/migrate/migrate.services.yml Drupal\migrate\MigrateLookup
migrate.plugin_event_subscriber core/modules/migrate/migrate.services.yml Drupal\migrate\Plugin\PluginEventSubscriber
migrate.stub core/modules/migrate/migrate.services.yml Drupal\migrate\MigrateStub
migrate_drupal.field_discovery core/modules/migrate_drupal/migrate_drupal.services.yml Drupal\migrate_drupal\FieldDiscovery
migrate_drupal.migration_state core/modules/migrate_drupal/migrate_drupal.services.yml Drupal\migrate_drupal\MigrationState
migrate_drupal_ui.route_subscriber core/modules/migrate_drupal_ui/migrate_drupal_ui.services.yml Drupal\migrate_drupal_ui\Routing\MigrateDrupalUiRouteSubscriber
mysql.views.cast_sql core/modules/mysql/mysql.services.yml Drupal\mysql\Plugin\views\query\MysqlCastSql
navigation.menu_tree core/modules/navigation/navigation.services.yml Drupal\navigation\Menu\NavigationMenuLinkTree
navigation.renderer core/modules/navigation/navigation.services.yml Drupal\navigation\NavigationRenderer
navigation.user_lazy_builder core/modules/navigation/navigation.services.yml Drupal\navigation\UserLazyBuilder
node.admin_path.route_subscriber core/modules/node/node.services.yml Drupal\node\EventSubscriber\NodeAdminRouteSubscriber
node.grant_storage core/modules/node/node.services.yml Drupal\node\NodeGrantDatabaseStorage backend_overridable
node.node_route_context core/modules/node/node.services.yml Drupal\node\ContextProvider\NodeRouteContext context_provider
node.page_cache_response_policy.deny_node_preview core/modules/node/node.services.yml Drupal\node\PageCache\DenyNodePreview page_cache_response_policy, dynamic_page_cache_response_policy
node.route_subscriber core/modules/node/node.services.yml Drupal\node\Routing\RouteSubscriber
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
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
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
PhpTuf\ComposerStager\API\Core\BeginnerInterface core/modules/package_manager/package_manager.services.yml PhpTuf\ComposerStager\Internal\Core\Beginner
PhpTuf\ComposerStager\API\Core\CleanerInterface core/modules/package_manager/package_manager.services.yml PhpTuf\ComposerStager\Internal\Core\Cleaner
PhpTuf\ComposerStager\API\Core\CommitterInterface core/modules/package_manager/package_manager.services.yml PhpTuf\ComposerStager\Internal\Core\Committer
PhpTuf\ComposerStager\API\Core\StagerInterface core/modules/package_manager/package_manager.services.yml PhpTuf\ComposerStager\Internal\Core\Stager
PhpTuf\ComposerStager\API\Environment\Service\EnvironmentInterface core/modules/package_manager/package_manager.services.yml PhpTuf\ComposerStager\Internal\Environment\Service\Environment
PhpTuf\ComposerStager\API\FileSyncer\Service\FileSyncerInterface core/modules/package_manager/package_manager.services.yml PhpTuf\ComposerStager\Internal\FileSyncer\Service\FileSyncer
PhpTuf\ComposerStager\API\Filesystem\Service\FilesystemInterface core/modules/package_manager/package_manager.services.yml PhpTuf\ComposerStager\Internal\Filesystem\Service\Filesystem
PhpTuf\ComposerStager\API\Finder\Service\ExecutableFinderInterface core/modules/package_manager/package_manager.services.yml PhpTuf\ComposerStager\Internal\Finder\Service\ExecutableFinder

Pagination

  • First page
  • Previous page
  • …
  • Page 3
  • Page 4
  • Page 5
  • Page 6
  • Page 7
  • Page 8
  • Page 9
  • Page 10
  • Page 11
  • …
  • Next page
  • Last page
RSS feed
Powered by Drupal