Problem/Motivation
With Drupal 9.0.8, saving a new rate limit triggers this exception:
Entity type 'Drupal\Core\Config\Entity\ConfigEntityType' is missing 'config_export' definition in its annotation
The message is not very helpful (see this issue) but it happens because RateLimitConfig does not have config_export in its annotations.
Steps to reproduce
- Install Drupal 9.0
- Install rate_limits 1.1.0
- Create a new rate limit config
Proposed resolution
Add a config_export key.
Remaining tasks
I will provide a patch.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | rate_limits-config_export-3190865-2.patch | 637 bytes | prudloff |
Comments
Comment #2
prudloff commentedThe attached patch adds the missing key.
Comment #3
themodularlab@prudloff,
I just encountered the same issue. I tested your patch (#2) and it resolves the error for me. Nice work!
Comment #4
themodularlabComment #6
e0ipsoThanks for the contribution!
Comment #7
e0ipsoI have also taken the chance to transition to semantic versioning. Please update to 2.0.1 with full backwards compatibility.
Comment #8
themodularlabThanks @e0ipso! and Thanks to @prudloff for the patch!