Add some missing comments

This commit is contained in:
Maxime Rainville 2020-01-13 12:14:11 +13:00
parent 793f437289
commit 8d0a5dd093

View File

@ -123,7 +123,13 @@ class UserFormsRequiredFields extends RequiredFields
return $error; return $error;
} }
private function handleError($formField, $fieldName) /**
* Register an error for the provided field.
* @param FormField $formField
* @param string $fieldName
* @return void
*/
private function handleError(FormField $formField, $fieldName)
{ {
$errorMessage = _t( $errorMessage = _t(
'SilverStripe\\Forms\\Form.FIELDISREQUIRED', 'SilverStripe\\Forms\\Form.FIELDISREQUIRED',