Skip to content

Commit

Permalink
API Rename validator classes
Browse files Browse the repository at this point in the history
  • Loading branch information
emteknetnz committed Dec 3, 2024
1 parent 9b97b5f commit a9b1007
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions code/Forms/InternalLinkFormFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
use SilverStripe\Forms\FieldList;
use SilverStripe\Forms\TextField;
use SilverStripe\Forms\TreeDropdownField;
use SilverStripe\Forms\RequiredFields;
use SilverStripe\Forms\RequiredFieldsValidator;

/**
* Provides a form factory for inserting internal page links in a HTML editor
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit a9b1007

Please sign in to comment.