Component config entity should validate that the SDC actually (still) exists

Created on 26 July 2024, about 1 month ago
Updated 3 September 2024, 4 days ago

Overview

This is the "used SDC" equivalent of the "used field type" scenario that was addressed in 📌 [PP-1] Prevent modules from being uninstalled if they provide field types used in an Experience Builder field Postponed .

Proposed resolution

  1. experience_builder.component.*:component must be (after replacing + with : — see \Drupal\experience_builder\Entity\Component::convertIdToMachineName()) one of \Drupal\Core\Plugin\DefaultPluginManager::getDefinitions()
  2. Explicit test coverage in \Drupal\Tests\experience_builder\Kernel\Entity\ComponentValidationTest.

User interface changes

None.

📌 Task
Status

Closed: outdated

Component

Config management

Created by

🇧🇪Belgium Wim Leers Ghent 🇧🇪🇪🇺

Live updates comments and jobs are added and updated live.
  • Needs tests

    The change is currently missing an automated test that fails when run with the original code, and succeeds when the bug has been fixed.

Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024