method
BlocksField.AppendHooks
AppendHooks appends supplied callbacks after existing callbacks in each phase.
Arguments
| Argument | Type | Description |
|---|---|---|
value | Hooks[store.Value] | The value value. |
Returns
The declared result.
BlocksFieldFull signature
func (f BlocksField) AppendHooks(value Hooks[store.Value]) BlocksFieldRelated types
BlocksFieldBlocksField configures an ordered list of rows chosen from the supplied block types.
HooksHooks registers transforms and event callbacks for one field. Each list runs in declaration order for each field occurrence, including nested array rows. Collection or global hooks run first in the same phase, except AfterCommit, where field callbacks run first. Use ReadHooks for response transformations.
ValueAn immutable scalar, object, list, or populated document value.