Page header for Services page in Drupal 10
Same name and namespace in other branches
- 8 core/core.api.php \listing_page_service
- 9 core/core.api.php \listing_page_service
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 898 - Documentation landing page and topics, plus core library hooks.