Skip to content

Commit ac904ee

Browse files
TimWolladtdesign
andauthored
Document AbstractFormFieldDecorator (#218)
Resolves #217 Co-authored-by: Alexander Ebert <[email protected]>
1 parent d028425 commit ac904ee

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

docs/php/api/form_builder/form_fields.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,13 @@ The methods `step($step = null)` and `getStep()` can be used to set and get the
1919
The default step for form fields with integer values is `1`.
2020
Otherwise, the default step is `any`.
2121

22+
### `AbstractFormFieldDecorator`
23+
24+
!!! info "Only available since version 5.4.5."
25+
26+
`AbstractFormFieldDecorator` is a default implementation of a decorator for form fields that forwards calls to all methods defined in `IFormField` to the respective method of the decorated object.
27+
The class implements `IFormfield`.
28+
If the implementation of a more specific interface is required then the remaining methods must be implemented in the concrete decorator derived from `AbstractFormFieldDecorator` and the type of the `$field` property must be narrowed appropriately.
2229

2330
## General Form Fields
2431

0 commit comments

Comments
 (0)