method
EmbeddedTreeCase.Definition
Definition returns the case's block type that slug selects.
Arguments
| Argument | Type | Description |
|---|---|---|
slug | string | The slug value. |
Returns
The declared result.
(BlockType, bool)Full signature
func (c EmbeddedTreeCase) Definition(slug string) (BlockType, bool)Related types
EmbeddedTreeCaseEmbeddedTreeCase declares schema-owned payloads for one structural node tag. Like a Blocks field, it selects block definitions by slug; an empty selection reserves the envelope while admitting no payloads.
BlockTypeOne normalized discriminated block layout.