method
BlocksField.Definition
Definition returns the block type that slug selects, as Definitions does.
Arguments
| Argument | Type | Description |
|---|---|---|
slug | string | The slug value. |
Returns
The declared result.
(BlockType, bool)Full signature
func (b BlocksField) Definition(slug string) (BlockType, bool)Related types
BlocksFieldThe allowed discriminated layouts for a blocks field.
BlockTypeOne normalized discriminated block layout.