function

ReferenceTypes

ReferenceTypes binds a registry field during config resolution. The definitions map is builder-owned until the final immutable manifest is installed.

Arguments

ArgumentTypeDescription
slugs[]stringThe slugs value.
definitionsmap[string]BlockTypeThe definitions value.
resourceStableIDThe resource value.
path[]stringThe path value.

Returns

The declared result.

*BlocksField

Full signature

func ReferenceTypes( slugs []string, definitions map[string]BlockType, resource StableID, path []string, ) *BlocksField

Source schema/block_registry.go:389

Related types

  • BlockType

    One normalized discriminated block layout.

  • StableID

    A deterministic identifier for schema evolution.

  • BlocksField

    The allowed discriminated layouts for a blocks field.