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 |
---|---|---|---|
accept_header_matcher | core/ |
Drupal\accept_header_routing_test\Routing\AcceptHeaderMatcher | route_filter |
access_arguments_resolver_factory | core/ |
Drupal\Core\Access\AccessArgumentsResolverFactory | |
access_check.admin_menu_block_page | core/ |
Drupal\system\Access\SystemAdminMenuBlockAccessCheck | access_check |
access_check.admin_overview_page | core/ |
Drupal\system\Access\SystemAdminMenuBlockAccessCheck | access_check |
access_check.book.removable | core/ |
Drupal\book\Access\BookNodeIsRemovableAccessCheck | access_check |
access_check.contact_personal | core/ |
Drupal\contact\Access\ContactPageAccess | access_check |
access_check.cron | core/ |
Drupal\system\Access\CronAccessCheck | access_check |
access_check.csrf | core/ |
Drupal\Core\Access\CsrfAccessCheck | access_check |
access_check.custom | core/ |
Drupal\Core\Access\CustomAccessCheck | access_check |
access_check.db_update | core/ |
Drupal\system\Access\DbUpdateAccessCheck | access_check |
access_check.default | core/ |
Drupal\Core\Access\DefaultAccessCheck | access_check |
access_check.entity | core/ |
Drupal\Core\Entity\EntityAccessCheck | access_check |
access_check.entity.layout_builder_access | core/ |
Drupal\layout_builder\Access\LayoutBuilderAccessCheck | access_check |
access_check.entity_create | core/ |
Drupal\Core\Entity\EntityCreateAccessCheck | access_check |
access_check.entity_create_any | core/ |
Drupal\Core\Entity\EntityCreateAnyAccessCheck | access_check |
access_check.entity_delete_multiple | core/ |
Drupal\Core\Entity\EntityDeleteMultipleAccessCheck | access_check |
access_check.field_ui.field_reuse | core/ |
Drupal\field_ui\Access\FieldReuseAccessCheck | access_check |
access_check.field_ui.form_mode | core/ |
Drupal\field_ui\Access\FormModeAccessCheck | access_check |
access_check.field_ui.view_mode | core/ |
Drupal\field_ui\Access\ViewModeAccessCheck | access_check |
access_check.header.csrf | core/ |
Drupal\Core\Access\CsrfRequestHeaderAccessCheck | access_check |
access_check.jsonapi.relationship_route_access | core/ |
Drupal\jsonapi\Access\RelationshipRouteAccessCheck | access_check |
access_check.latest_revision | core/ |
Drupal\content_moderation\Access\LatestRevisionCheck | access_check |
access_check.menu_test_session | core/ |
Drupal\menu_test\Access\AccessCheck | access_check |
access_check.node.preview | core/ |
Drupal\node\Access\NodePreviewAccessCheck | access_check |
access_check.permission | core/ |
Drupal\user\Access\PermissionAccessCheck | access_check |
access_check.settings_tray.block.has_overrides | core/ |
Drupal\settings_tray\Access\BlockHasOverridesAccessCheck | access_check |
access_check.settings_tray.block.settings_tray_form | core/ |
Drupal\settings_tray\Access\BlockPluginHasSettingsTrayFormAccessCheck | access_check |
access_check.theme | core/ |
Drupal\Core\Theme\ThemeAccessCheck | access_check |
access_check.update.manager_access | core/ |
Drupal\update\Access\UpdateManagerAccessCheck | access_check |
access_check.user.login_status | core/ |
Drupal\user\Access\LoginStatusCheck | access_check |
access_check.user.register | core/ |
Drupal\user\Access\RegisterAccessCheck | access_check |
access_check.user.role | core/ |
Drupal\user\Access\RoleAccessCheck | access_check |
access_check.workspaces.active_workspace | core/ |
Drupal\workspaces\Access\ActiveWorkspaceCheck | access_check |
access_manager | core/ |
Drupal\Core\Access\AccessManager | |
access_manager.check_provider | core/ |
Drupal\Core\Access\CheckProvider | |
access_policy.super_user | core/ |
Drupal\Core\Session\SuperUserAccessPolicy | access_policy |
access_policy.user_roles | core/ |
Drupal\Core\Session\UserRolesAccessPolicy | access_policy |
access_policy_processor | core/ |
Drupal\Core\Session\AccessPolicyProcessor | service_collector |
account_switcher | core/ |
Drupal\Core\Session\AccountSwitcher | |
ajax_response.attachments_processor | core/ |
Drupal\Core\Ajax\AjaxResponseAttachmentsProcessor | |
ajax_response.subscriber | core/ |
Drupal\Core\EventSubscriber\AjaxResponseSubscriber | |
announcements_feed.fetcher | core/ |
Drupal\announcements_feed\AnnounceFetcher | |
announcements_feed.lazy_builders | core/ |
Drupal\announcements_feed\LazyBuilders | |
announcements_feed.renderer | core/ |
Drupal\announcements_feed\AnnounceRenderer | |
announce_feed_test.announce_client_middleware | core/ |
Drupal\announce_feed_test\AnnounceTestHttpClientMiddleware | http_client_middleware |
anonymous_user_response_subscriber | core/ |
Drupal\Core\EventSubscriber\AnonymousUserResponseSubscriber | |
argument_resolver.default | core/ |
Symfony\Component\HttpKernel\Controller\ArgumentResolver\DefaultValueResolver | |
argument_resolver.psr7_request | core/ |
Drupal\Core\Controller\ArgumentResolver\Psr7RequestValueResolver | |
argument_resolver.request | core/ |
Symfony\Component\HttpKernel\Controller\ArgumentResolver\RequestValueResolver | |
argument_resolver.request_attribute | core/ |
Symfony\Component\HttpKernel\Controller\ArgumentResolver\RequestAttributeValueResolver |
Pagination
- Page 1
- Next page
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.