Skip to content

Commit 1d56bff

Browse files
committed
Document LanguageItemFormNode
Closes #406
1 parent 9e68502 commit 1d56bff

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

docs/php/api/form_builder/form_fields.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,18 @@ By default, `ItemListFormField::SAVE_VALUE_TYPE_CSV` is used.
130130
If `ItemListFormField::SAVE_VALUE_TYPE_ARRAY` is used as save value type, `ItemListFormField` objects register a [custom form field data processor](validation_data.md#customformfielddataprocessor) to add the relevant array into the `$parameters` array directly using the object property as the array key.
131131

132132

133+
### `LanguageItemFormNode`
134+
135+
`LanguageItemFormNode` is a form node that shows a language item without any surrounding HTML code.
136+
137+
Example:
138+
139+
```php
140+
LanguageItemFormNode::create('name')
141+
->languageItem('name_of_language_item');
142+
```
143+
144+
133145
### `MultilineTextFormField`
134146

135147
`MultilineTextFormField` is a [text form field](#textformfield) that supports multiple rows of text.

0 commit comments

Comments
 (0)