From 52812c2ed1ba26af5808171d5a25149c10baa856 Mon Sep 17 00:00:00 2001 From: Steve Boyd Date: Thu, 5 Dec 2024 17:32:14 +1300 Subject: [PATCH] API Rename validator classes --- code/Forms/InternalLinkFormFactory.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/code/Forms/InternalLinkFormFactory.php b/code/Forms/InternalLinkFormFactory.php index 045c695a24..356fa97670 100644 --- a/code/Forms/InternalLinkFormFactory.php +++ b/code/Forms/InternalLinkFormFactory.php @@ -9,7 +9,7 @@ use SilverStripe\Forms\FieldList; use SilverStripe\Forms\TextField; use SilverStripe\Forms\TreeDropdownField; -use SilverStripe\Forms\RequiredFields; +use SilverStripe\Forms\Validation\RequiredFieldsValidator; /** * Provides a form factory for inserting internal page links in a HTML editor @@ -56,7 +56,7 @@ protected function getFormFields($controller, $name, $context) protected function getValidator($controller, $name, $context) { if ($context['RequireLinkText']) { - return RequiredFields::create('Text'); + return RequiredFieldsValidator::create('Text'); } return null;