diff --git a/src/Core/Form.php b/src/Core/Form.php index 67ec0c5694..93a996341b 100644 --- a/src/Core/Form.php +++ b/src/Core/Form.php @@ -52,4 +52,9 @@ abstract class Form } return $fb->getForm(); } + + public static function isRequired(array $form, string $field): bool + { + return $form[$field][2]['required'] ?? true; + } }