Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DOC Deprecations for validators #646

Merged

Conversation

emteknetnz
Copy link
Member

@emteknetnz emteknetnz changed the title DOC Deprecations for Validators DOC Deprecations for validators Dec 3, 2024
@emteknetnz emteknetnz force-pushed the pulls/5/depr-valid branch 2 times, most recently from f185fd5 to 4b3b88b Compare December 3, 2024 05:24
@emteknetnz emteknetnz marked this pull request as ready for review December 3, 2024 05:27
@emteknetnz emteknetnz marked this pull request as draft December 3, 2024 05:55
@emteknetnz emteknetnz marked this pull request as ready for review December 4, 2024 22:06
@emteknetnz emteknetnz force-pushed the pulls/5/depr-valid branch 2 times, most recently from 5d6636b to 6904fa6 Compare December 5, 2024 04:19
@@ -203,6 +203,12 @@ The `SilverStripe\CMS\Model\SiteTree.DESCRIPTION` localisation key (along with t
- [`RemoteFileModalExtension::getSchemaResponse()`](api:SilverStripe\AssetAdmin\Extensions\RemoteFileModalExtension::getSchemaResponse()) has been deprecated. It will be replaced with `RemoteFileModalExtension::getOwner()->getSchemaResponse()`.
- [`InternalLinkModalExtension`](api:SilverStripe\CMS\Forms\InternalLinkModalExtension) has been deprecated. It will be replaced with configuration on [`ModalController`](api:SilverStripe\Admin\ModalController).
- [`FormField::validate()`](api:SilverStripe\Forms\FormField::validate()) will take zero arguments and return a ValidationResult object instead of a boolean in CMS 6.0.0.
- [`FieldsValidator`](api:SilverStripe\Forms\FieldsValidator) has been deprecated. It will be replaced with functionality inside Silverstripe\Forms\Form::validate().
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
- [`FieldsValidator`](api:SilverStripe\Forms\FieldsValidator) has been deprecated. It will be replaced with functionality inside Silverstripe\Forms\Form::validate().
- [`FieldsValidator`](api:SilverStripe\Forms\FieldsValidator) has been deprecated. It will be replaced with functionality inside [`Form::validate()`](api:Silverstripe\Forms\Form::validate()).

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated

Copy link
Member

@GuySartorelli GuySartorelli left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@GuySartorelli GuySartorelli merged commit f30b9b2 into silverstripe:5 Dec 9, 2024
3 checks passed
@GuySartorelli GuySartorelli deleted the pulls/5/depr-valid branch December 9, 2024 02:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants