Use BasicRecursiveValidatorFactory for \Drupal\update\ProjectRelease::validateReleaseData()

Created on 10 October 2023, about 1 year ago
Updated 11 January 2024, 10 months ago

Problem/Motivation

In πŸ“Œ Create an UploadedFile validator and deprecate error checking methods on UploadedFileInterface RTBC we created a \Drupal\Core\Validation\BasicRecursiveValidatorFactory that creates a \Symfony\Component\Validator\Validator\RecursiveValidator. This provides additional benefits over using \Symfony\Component\Validator\Validation::createValidator().

  • It creates validation messages that are \Drupal\Core\StringTranslation\TranslatableMarkup
  • It uses our \Drupal\Core\Validation\ConstraintValidatorFactory and \Drupal\Core\DependencyInjection\ClassResolverInterface to find constraint validators.

Steps to reproduce

Proposed resolution

Replace \Symfony\Component\Validator\Validation::createValidator() in \Drupal\update\ProjectRelease::validateReleaseData() with a RecursiveValidator created by \Drupal\Core\Validation\BasicRecursiveValidatorFactory.

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

πŸ“Œ Task
Status

Closed: won't fix

Version

11.0 πŸ”₯

Component
UpdateΒ  β†’

Last updated 2 days ago

  • Maintained by
  • πŸ‡ΊπŸ‡ΈUnited States @tedbow
  • πŸ‡ΊπŸ‡ΈUnited States @dww
Created by

πŸ‡¦πŸ‡ΊAustralia kim.pepper πŸ„β€β™‚οΈπŸ‡¦πŸ‡ΊSydney, Australia

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024