ExistsConstraintValidator should ignore NULL values and treat `core` as a valid module

Created on 7 March 2024, 8 months ago
Updated 22 March 2024, 8 months ago

Problem/Motivation

  1. Any value where the ExistsConstraint is used may be marked optional. So NULL should be allowed. (Similar issue for another constraint: πŸ› ConfigExistsConstraintValidator should ignore NULL values Active )
  2. Drupal core has a special "module" called core. This "module" is always installed. It is used for all plugins in the core/lib directory: no concrete module is then the provider of such a plugin, but core is. Hence it should be treated as a valid value.

Both of these problems were surfaced in πŸ“Œ Make Block config entities fully validatable Fixed .

Steps to reproduce

N/A

Proposed resolution

  1. Allow NULL always, allow core if the type option is set to module.
  2. Test coverage.

Remaining tasks

None.

User interface changes

None.

API changes

None.

Data model changes

None.

Release notes snippet

N/A

πŸ› Bug report
Status

Fixed

Version

10.2 ✨

Component
ConfigurationΒ  β†’

Last updated 1 day ago

Created by

πŸ‡§πŸ‡ͺBelgium wim leers Ghent πŸ‡§πŸ‡ͺπŸ‡ͺπŸ‡Ί

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