From: Tim Düsterhus Date: Mon, 23 Aug 2021 09:58:53 +0000 (+0200) Subject: Document AbstractFormFieldDecorator (#218) X-Git-Tag: 5.6.final~53^2~17 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=ac904ee9890ab61971ce437fdb7acdc748e2fdb2;p=GitHub%2FWoltLab%2Fwoltlab.github.io.git Document AbstractFormFieldDecorator (#218) Resolves #217 Co-authored-by: Alexander Ebert --- diff --git a/docs/php/api/form_builder/form_fields.md b/docs/php/api/form_builder/form_fields.md index 1914202a..62c38fba 100644 --- a/docs/php/api/form_builder/form_fields.md +++ b/docs/php/api/form_builder/form_fields.md @@ -19,6 +19,13 @@ The methods `step($step = null)` and `getStep()` can be used to set and get the The default step for form fields with integer values is `1`. Otherwise, the default step is `any`. +### `AbstractFormFieldDecorator` + +!!! info "Only available since version 5.4.5." + +`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. +The class implements `IFormfield`. +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. ## General Form Fields