function
ReferenceTypes
ReferenceTypes binds a container during config resolution. The definitions are builder-owned until the final immutable manifest is installed.
Arguments
| Argument | Type | Description |
|---|---|---|
slugs | []string | The slugs value. |
definitions | *BlockDefinitions | The definitions value. |
resource | StableID | The resource value. |
path | []string | The path value. |
Returns
The declared result.
*BlocksFieldFull signature
func ReferenceTypes(
slugs []string,
definitions *BlockDefinitions,
resource StableID,
path []string,
) *BlocksFieldRelated types
BlockDefinitionsBlockDefinitions 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.
StableIDA deterministic identifier for schema evolution.
BlocksFieldThe allowed discriminated layouts for a blocks field.