- Issue created by @longwave
- 🇧🇪Belgium wim leers Ghent 🇧🇪🇪🇺
@longwave surfaced this over at 📌 Move SDC specific validation in ValidComponentTreeConstraintValidator::validate into the SDC source plugin Active .
These methods both take the component UUID as an argument:
public function clientModelToInput(string $component_instance_uuid, ComponentEntity $component, array $client_model, ConstraintViolationListInterface $violations): array {
public function validateComponentInput(array $inputValues, string $component_instance_uuid, ?FieldableEntityInterface $entity): ConstraintViolationListInterface {
However the UUID is actually irrelevant to them, except to specify the path in the case of validation errors.
Refactor away the UUID argument and make the caller remap the UUID into the validation errors.
Active
0.0
Code
@longwave surfaced this over at 📌 Move SDC specific validation in ValidComponentTreeConstraintValidator::validate into the SDC source plugin Active .