Problem/Motivation
- Any value where the
ExistsConstraintis used may be marked optional. SoNULLshould be allowed. (Similar issue for another constraint: #3416549: ConfigExistsConstraintValidator should ignore NULL values) - Drupal core has a special "module" called
core. This "module" is always installed. It is used for all plugins in thecore/libdirectory: no concrete module is then the provider of such a plugin, butcoreis. Hence it should be treated as a valid value.
Both of these problems were surfaced in #3379725: Make Block config entities fully validatable.
Steps to reproduce
N/A
Proposed resolution
- Allow
NULLalways, allowcoreif thetypeoption is set tomodule. - Test coverage.
Remaining tasks
None.
User interface changes
None.
API changes
None.
Data model changes
None.
Release notes snippet
N/A
Issue fork drupal-3426324
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
wim leersTest-only CI job should fail.
Comment #4
smustgrave commentedTest-only has already been ran
This one had to read a few times but haven't used ExistsConstraint much yet. But idea of if module type and core is used makes sense.
Since this appears to be a blocker going to mark it.
Comment #5
alexpottCommitted and pushed ab695b5cc6 to 11.x and d4c468d72b to 10.3.x and 5f758d452e to 10.2.x. Thanks!