By kim.pepper on
Change record status:
Published (View all published change records)
Project:
Introduced in branch:
10.3.x
Introduced in version:
10.3.0
Issue links:
Description:
ExecutionContext, ExecutionContextFactory, and ConstraintViolationBuilder where previously in the Drupal\Core\TypedData\Validation namespace.
As they are used outside of TypeData they have been moved to the Drupal\Core\Validation namespace.
In addition, typehints have been added.
The following deprecations were added to keep inline with the \Symfony\Component\Validator\Violation\ConstraintViolationBuilderInterface interface:
- Passing a non-string
$pathargument to\Drupal\Core\Validation\ConstraintViolationBuilder::atPath($path)is deprecated in 10.3.0 and a string will be required in Drupal 11.