Skip to content

Commit 07e454d

Browse files
committed
Dcoument EmptyFormFieldDependency
Resolves #235
1 parent 38b9e33 commit 07e454d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

docs/php/api/form_builder/dependencies.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,10 @@ When the form is built, all dependencies that only know the id of the relevant f
5050

5151
## Default Dependencies
5252

53-
WoltLab Suite Core delivers the following two default dependency classes by default:
53+
WoltLab Suite Core delivers the following dependency classes by default:
5454

55-
- `NonEmptyFormFieldDependency` can be used to ensure that a node is only shown if the value of the referenced form field is not empty (being empty is determined using PHP’s `empty` function).
55+
- `NonEmptyFormFieldDependency` can be used to ensure that a node is only shown if the value of the referenced form field is not empty (being empty is determined using PHP’s `empty()` language construct).
56+
- `EmptyFormFieldDependency` is the inverse of `NonEmptyFormFieldDependency`, checking for `!empty()`.
5657
- `ValueFormFieldDependency` can be used to ensure that a node is only shown if the value of the referenced form field is from a specified list of of values (see methods `values($values)` and `getValues()`).
5758
Additionally, via `negate($negate = true)` and `isNegated()`, the logic can also be inverted by requiring the value of the referenced form field not to be from a specified list of values.
5859

0 commit comments

Comments
 (0)