type
BlockType
One normalized discriminated block layout.
Properties
| Property | Type | Description |
|---|---|---|
TypeName | string | The TypeName value. |
Admin | *BlockAdmin | The Admin value. |
Slug | string | The stable blockType discriminator stored with content. |
Labels | BlockLabels | Resolved singular and plural display names and optional admin-language translations. |
Fields | []Field | The fields declared by this block definition. |
Full signature
type BlockType struct {
TypeName string `json:"typeName,omitempty"`
Admin *BlockAdmin `json:"admin,omitempty"`
Slug string `json:"slug"`
Labels BlockLabels `json:"labels"`
Fields []Field `json:"fields"`
// contains filtered or unexported fields
}Methods
BlockType.ResolvedFields()ResolvedFields exposes placement-aware children. Definition metadata is shared; child placement views are materialized only when traversed. As with other snapshot fields, callers must not mutate a view concurrently with traversal.