type

Block

type Block struct { // Key is the stable discriminator stored with block values. Key string // Label is the author-facing block type name. Label string // LabelTranslations overrides Label for configured admin interface languages. LabelTranslations map[string]string // Fields defines the values stored by this block type. Fields []Definition }

One discriminated blocks layout.

Source field/field.go:65

Keystring
Key is the stable discriminator stored with block values.
Labelstring
Label is the author-facing block type name.
LabelTranslationsmap[string]string
LabelTranslations overrides Label for configured admin interface languages.
Fields[]Definition
Fields defines the values stored by this block type.

Methods