method
BlockRegistry.Bind
Bind returns a detached field graph whose containers select shared definitions. Policy closures remain application-owned and execute normally per occurrence.
Arguments
| Argument | Type | Description |
|---|---|---|
fields | Fields | The fields value. |
Returns
The declared result.
(Fields, error)Full signature
func (r *BlockRegistry) Bind(fields Fields) (Fields, error)Related types
BlockRegistryBlockRegistry owns the block definitions of one configuration, one per slug. Blocks registered centrally and blocks declared inline in a Blocks field or an embedded tree case are the same kind of definition: binding interns every inline declaration by slug, so each definition is bound once and shared by all of its placements. Bound containers select their definitions by slug and do not grant a placement mutation rights over a shared definition.
FieldsFields is the ordered list assigned to ridu.Collection.Fields, ridu.Global.Fields, or a nested field constructor. Populate it with Nodes from this package's constructors. Ridu snapshots the caller-owned slice during construction, editing, and config resolution.