Droost: Service Detail
droost_service Read-only
Module: Droost coreOne service's definition: class, arguments, tags — the DI truth for wiring your own code. droost_services finds candidates; this inspects the winner.
Example call
{
"tool": "droost_service",
"arguments": {
"id": "droost_views.handler_resolver"
}
}
Example response — captured live on this site
{
"success": true,
"message": "droost_views.handler_resolver → Drupal\\droost_views\\HandlerResolver.",
"data": {
"id": "droost_views.handler_resolver",
"exists": true,
"resolved_id": "droost_views.handler_resolver",
"is_alias": false,
"class": "Drupal\\droost_views\\HandlerResolver",
"deprecated": false,
"deprecation": null,
"autowire_typehints": [],
"tags": [],
"arguments": [
"@views.views_data",
"@entity_type.manager",
"@entity_field.manager"
],
"constructor": [
{
"name": "viewsData",
"type": "Drupal\\views\\ViewsData",
"optional": false
},
{
"name": "entityTypeManager",
"type": "Drupal\\Core\\Entity\\EntityTypeManagerInterface",
"optional": false
},
{
"name": "fieldManager",
"type": "Drupal\\Core\\Entity\\EntityFieldManagerInterface",
"optional": false
}
],
"usage": {
"typehint": "Drupal\\droost_views\\HandlerResolver",
"container_get": "$container->get('droost_views.handler_resolver')",
"inject_snippet": "public function __construct(\n private readonly HandlerResolver
… (truncated — run it yourself for the rest)
Reports full detail for one DI service: the concrete class, the interface to type-hint for autowiring, constructor dependencies, tags, an injection snippet, and any deprecation (with the recommended replacement). Pass "id" — a service id (e.g. "entity_type.manager") or an interface an autowire alias points at (e.g. "Drupal\Core\Entity\EntityTypeManagerInterface"). Read-only; never instantiates the service.
Input schema (JSON Schema)
{
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "A service id (e.g. \"entity_type.manager\") or an autowire interface/class (e.g. \"Drupal\\Core\\Entity\\EntityTypeManagerInterface\")."
}
},
"required": [
"id"
]
}
Droost