function

ReferenceTypes

ReferenceTypes binds a container during config resolution. The definitions are builder-owned until the final immutable manifest is installed.

Arguments

ArgumentTypeDescription
slugs[]stringThe slugs value.
definitions*BlockDefinitionsThe definitions value.
resourceStableIDThe resource value.
path[]stringThe path value.

Returns

The declared result.

*BlocksField

Full signature

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

Source schema/block_registry.go:699

Related types

  • BlockDefinitions

    BlockDefinitions holds the block definitions of one schema and the definition views shared by all of their placements. A builder may add definitions while it resolves configuration; views are created on first use.

  • StableID

    A deterministic identifier for schema evolution.

  • BlocksField

    The allowed discriminated layouts for a blocks field.