ApiAutoSaveController::validatePageRegion should use XB's EntityConstraintViolationList until core provides compatible one

Created on 19 March 2025, 19 days ago

Overview

\Drupal\experience_builder\Controller\ApiAutoSaveController::validatePageRegion

has

// @todo Use a violation list that allows keeping track of the entity
    // context.
    // @see https://www.drupal.org/project/drupal/issues/3495599
    $violations = $this->typedConfigManager->createFromNameAndData($entity->getConfigDependencyName(), $entity->toArray())->validate();
    if ($violations->count() > 0) {
      throw new ConstraintViolationException($violations);
    }

But we actually have \Drupal\experience_builder\Entity\EntityConstraintViolationList which allows this until core provides it

Proposed resolution

user our EntityConstraintViolationList

User interface changes

πŸ“Œ Task
Status

Active

Version

0.0

Component

Page builder

Created by

πŸ‡ΊπŸ‡ΈUnited States tedbow Ithaca, NY, USA

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024