Skip to content

Commit

Permalink
Fix for missing entity configuration in Drupal 9
Browse files Browse the repository at this point in the history
```
Drupal\Core\Config\Schema\SchemaIncompleteException: Entity type 'Drupal\embargoes\Entity\EmbargoesEmbargoEntity' is missing 'config_export' definition in its annotation
```
  • Loading branch information
nigelgbanks committed Jun 21, 2021
1 parent bfaf078 commit 2178a0f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Entity/EmbargoesEmbargoEntity.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,11 @@
* "label" = "label",
* "uuid" = "uuid"
* },
* config_export = {
* "id" = "id",
* "label" = "label",
* "uuid" = "uuid"
* },
* links = {
* "canonical" = "/admin/config/content/embargoes/settings/embargoes/{embargoes_embargo_entity}",
* "add-form" = "/admin/config/content/embargoes/settings/embargoes/add",
Expand Down
5 changes: 5 additions & 0 deletions src/Entity/EmbargoesIpRangeEntity.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,11 @@
* "label" = "label",
* "uuid" = "uuid"
* },
* config_export = {
* "id" = "id",
* "label" = "label",
* "uuid" = "uuid"
* },
* links = {
* "canonical" = "/admin/config/content/embargoes/settings/ips/{embargoes_ip_range_entity}",
* "add-form" = "/admin/config/content/embargoes/settings/ips/add",
Expand Down

0 comments on commit 2178a0f

Please sign in to comment.