Services - 8.9.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 893
Title | File name | Summary | All service tags |
---|---|---|---|
toolbar.page_cache_request_policy.allow_toolbar_path | core/ |
Drupal\toolbar\PageCache\AllowToolbarPath | page_cache_request_policy |
transliteration | core/ |
Drupal\Core\Transliteration\PhpTransliteration | |
twig | core/ |
Drupal\Core\Template\TwigEnvironment | service_collector |
twig.extension | core/ |
Drupal\Core\Template\TwigExtension | twig.extension |
twig.extension.debug | core/ |
Twig_Extension_Debug | twig.extension |
twig.loader | core/ |
Twig_Loader_Chain | service_collector |
twig.loader.filesystem | core/ |
Drupal\Core\Template\Loader\FilesystemLoader | twig.loader |
twig.loader.string | core/ |
Drupal\Core\Template\Loader\StringLoader | twig.loader |
twig.loader.theme_registry | core/ |
Drupal\Core\Template\Loader\ThemeRegistryLoader | twig.loader |
twig_extension_test.twig.test_extension | core/ |
Drupal\twig_extension_test\TwigExtension\TestExtension | twig.extension |
twig_loader_test.twig.test_loader | core/ |
Drupal\twig_loader_test\Loader\TestLoader | twig.loader |
typed_data_manager | core/ |
Drupal\Core\TypedData\TypedDataManager | plugin_manager_cache_clear |
unrouted_url_assembler | core/ |
Drupal\Core\Utility\UnroutedUrlAssembler | |
update.fetcher | core/ |
Drupal\update\UpdateFetcher | |
update.manager | core/ |
Drupal\update\UpdateManager | |
update.post_update_registry | core/ |
Drupal\Core\Update\UpdateRegistry | |
update.post_update_registry_factory | core/ |
Drupal\Core\Update\UpdateRegistryFactory | |
update.processor | core/ |
Drupal\update\UpdateProcessor | |
update.root | core/ |
SplString | parameter_service |
update.root.factory | core/ |
Drupal\update\UpdateRootFactory | |
update_script_test.broken_path_processor | core/ |
Drupal\update_script_test\PathProcessor\BrokenInboundPathProcessor | path_processor_inbound |
url_alter_test.path_processor | core/ |
Drupal\url_alter_test\PathProcessorTest | path_processor_inbound, path_processor_outbound |
url_generator | core/ |
Drupal\Core\Render\MetadataBubblingUrlGenerator | |
url_generator.non_bubbling | core/ |
Drupal\Core\Routing\UrlGenerator | |
user.auth | core/ |
Drupal\user\UserAuth | |
user.authentication.cookie | core/ |
Drupal\user\Authentication\Provider\Cookie | authentication_provider |
user.current_user_context | core/ |
Drupal\user\ContextProvider\CurrentUserContext | context_provider |
user.data | core/ |
Drupal\user\UserData | backend_overridable |
user.permissions | core/ |
Drupal\user\PermissionHandler | |
user.private_tempstore | core/ |
Drupal\user\PrivateTempStoreFactory | backend_overridable |
user.shared_tempstore | core/ |
Drupal\user\SharedTempStoreFactory | backend_overridable |
user.toolbar_link_builder | core/ |
Drupal\user\ToolbarLinkBuilder | |
user_access_denied_subscriber | core/ |
Drupal\user\EventSubscriber\AccessDeniedSubscriber | event_subscriber |
user_last_access_subscriber | core/ |
Drupal\user\EventSubscriber\UserRequestSubscriber | event_subscriber |
user_maintenance_mode_subscriber | core/ |
Drupal\user\EventSubscriber\MaintenanceModeSubscriber | event_subscriber |
user_permissions_hash_generator | core/ |
Drupal\Core\Session\PermissionsHashGenerator | |
uuid | core/ |
Drupal\Component\Uuid\Php | |
validation.constraint | core/ |
Drupal\Core\Validation\ConstraintManager | plugin_manager_cache_clear |
views.analyzer | core/ |
Drupal\views\Analyzer | |
views.date_sql | core/ |
Drupal\views\Plugin\views\query\MysqlDateSql | backend_overridable |
views.entity_schema_subscriber | core/ |
Drupal\views\EventSubscriber\ViewsEntitySchemaSubscriber | event_subscriber |
views.executable | core/ |
Drupal\views\ViewExecutableFactory | |
views.exposed_form_cache | core/ |
Drupal\views\ExposedFormCache | |
views.route_subscriber | core/ |
Drupal\views\EventSubscriber\RouteSubscriber | event_subscriber |
views.views_data | core/ |
Drupal\views\ViewsData | |
views.views_data_helper | core/ |
Drupal\views\ViewsDataHelper | |
workflows.access_check.delete_state | core/ |
\Drupal\workflows\WorkflowDeleteAccessCheck | access_check |
workflows.access_check.extended_permissions | core/ |
\Drupal\workflows\WorkflowStateTransitionOperationsAccessCheck | access_check |
workspaces.association | core/ |
Drupal\workspaces\WorkspaceAssociation | backend_overridable |
workspaces.entity.query.sql | core/ |
Drupal\workspaces\EntityQuery\QueryFactory | backend_overridable |
Pagination
- Previous page
- Page 17
- Next page
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.