Skip to main content

Droost: Display Sources

droost_display_sources Read-only

Module: Droost Display

What can feed a prop or slot for a given field — the exact source list the Manage Display UI would offer, including the field's own field_property/field_formatter derivatives. Consult it before compose instead of guessing source ids.

Example call
{
    "tool": "droost_display_sources",
    "arguments": {
        "entity_type": "node",
        "bundle": "tool",
        "field": "field_tool_label"
    }
}
Example response — captured live on this site
{
    "success": true,
    "message": "14 UI Patterns prop types registered. Call again with \"prop_type\" for the sources that can feed one; \"slot\" covers component slots.",
    "data": {
        "prop_types": [
            {
                "id": "string",
                "label": "string",
                "description": "",
                "default_source": "textfield"
            },
            {
                "id": "list",
                "label": "list",
                "description": "",
                "default_source": "list_textarea"
            },
            {
                "id": "enum_set",
                "label": "enum_set",
                "description": "",
                "default_source": "checkboxes"
            },
            {
                "id": "boolean",
                "label": "boolean",
                "description": "",
                "default_source": "checkbox"
            },
            {
                "id": "links",
                "label": "links",
                "description": "",
                "default_source": "menu"
            },
            {
                "id": "enum_list",
                "label": "enum_list",
                "description": "",
                "default_source": "selects"
            },
            {
                "id": "unknown",
                "label": "unknown",
                "description": "",
  
… (truncated — run it yourself for the rest)

Lists what can feed an SDC prop or slot in an entity display (UI Patterns source plugins). Without arguments: the prop-type registry (string, slot, attributes, url, ...) with each type's default source. With "prop_type": the applicable sources. Add "entity_type" + "bundle" + "field" to include that field's dynamic sources (field_property:*, field_formatter:*) exactly as the Manage Display UI would offer them. Read-only.

Input schema (JSON Schema)
{
    "type": "object",
    "properties": {
        "prop_type": {
            "type": "string",
            "description": "A UI Patterns prop type id (e.g. \"string\", \"slot\", \"attributes\", \"url\", \"links\"). Omit to list all prop types."
        },
        "entity_type": {
            "type": "string",
            "description": "Entity type id for field context (default \"node\"). Use together with \"bundle\" and \"field\"."
        },
        "bundle": {
            "type": "string",
            "description": "Bundle for field context, e.g. \"event\"."
        },
        "field": {
            "type": "string",
            "description": "Field machine name for field context, e.g. \"field_event_date\". Unlocks that field's dynamic sources."
        },
        "per_item": {
            "type": "boolean",
            "description": "Resolve for the per-item component formatter (default true; matches single-value fields)."
        }
    }
}