Decouple component UUID from clientModelToInput and validateComponentInput

Created on 23 January 2025, 7 days ago

Overview

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.

Proposed resolution

Refactor away the UUID argument and make the caller remap the UUID into the validation errors.

User interface changes

📌 Task
Status

Active

Version

0.0

Component

Code

Created by

🇬🇧United Kingdom longwave UK

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

Comments & Activities

Production build 0.71.5 2024