type

BlockType

One normalized discriminated block layout.

Properties

PropertyTypeDescription
TypeNamestringThe TypeName value.
Admin*BlockAdminThe Admin value.
SlugstringThe stable blockType discriminator stored with content.
LabelsBlockLabelsResolved singular and plural display names and optional admin-language translations.
Fields[]FieldThe 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 }

Source schema/manifest.go:704

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.