From 8136db530e5f2ddf4d55ddcdfee9ccbc5ed8a2c2 Mon Sep 17 00:00:00 2001 From: Steve Boyd Date: Wed, 11 Dec 2024 15:33:40 +1300 Subject: [PATCH] DOC Remove references to FieldsValidator --- en/02_Developer_Guides/03_Forms/01_Validation.md | 2 -- .../11_Integration/How_Tos/Import_CSV_through_a_Controller.md | 4 +--- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/en/02_Developer_Guides/03_Forms/01_Validation.md b/en/02_Developer_Guides/03_Forms/01_Validation.md index 84292784c..3e1e2c6c9 100644 --- a/en/02_Developer_Guides/03_Forms/01_Validation.md +++ b/en/02_Developer_Guides/03_Forms/01_Validation.md @@ -265,8 +265,6 @@ The Silverstripe framework comes with the following built-in validators: - [`CompositeValidator`](api:SilverStripe\Forms\Validation\CompositeValidator) A container for additional validators. You can implement discrete validation logic in multiple `Validator` subclasses and apply them *all* to a given form by putting them inside a `CompositeValidator`. The `CompositeValidator` doesn't have perform any validation by itself. -- [`FieldsValidator`](api:SilverStripe\Forms\FieldsValidator) - Simply calls [`validate()`](api:SilverStripe\Forms\FormField::validate()) on all data fields in the form, to ensure fields have valid values. - [`RequiredFieldsValidator`](api:SilverStripe\Forms\Validation\RequiredFieldsValidator) Validates that fields you declare as "required" have a value. diff --git a/en/02_Developer_Guides/11_Integration/How_Tos/Import_CSV_through_a_Controller.md b/en/02_Developer_Guides/11_Integration/How_Tos/Import_CSV_through_a_Controller.md index 0a3c16323..2926a88d8 100644 --- a/en/02_Developer_Guides/11_Integration/How_Tos/Import_CSV_through_a_Controller.md +++ b/en/02_Developer_Guides/11_Integration/How_Tos/Import_CSV_through_a_Controller.md @@ -17,7 +17,6 @@ use App\Model\MyDataObject; use SilverStripe\Control\Controller; use SilverStripe\Dev\CsvBulkLoader; use SilverStripe\Forms\FieldList; -use SilverStripe\Forms\FieldsValidator; use SilverStripe\Forms\FileField; use SilverStripe\Forms\Form; use SilverStripe\Forms\FormAction; @@ -46,8 +45,7 @@ class MyController extends Controller ), FieldList::create( FormAction::create('doUpload', 'Upload') - ), - FieldsValidator::create() + ) ); return $form; }