Problem/Motivation

We got error during creation config entity "Emails".
Drupal\Core\Config\Schema\SchemaIncompleteException: Entity type 'Drupal\better_emails\Entity\Emails' is missing 'config_export' definition in its annotation in Drupal\Core\Config\Entity\ConfigEntityBase->toArray() (line 251 of core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php).

Steps to reproduce

1) Install module on drupal 9 site.
2) Open emails create form (/admin/structure/emails/add)
3) Fill form with random values.
4) Save entity
5) We've got an error.

Proposed resolution

Add config_export metadata to config entity annotation.

Comments

Andrii Kleba created an issue. See original summary.

Andrii Kleba’s picture

Assigned: Andrii Kleba » Unassigned
Status: Active » Needs review
StatusFileSize
new487 bytes

Added config_export metadata to config entity annotation.

ipinchuk’s picture

Status: Needs review » Reviewed & tested by the community

Thank you for your contribution. The patch code looks good to me.

ipinchuk’s picture

Issue tags: +Drupal 9 compatibility
kir lazur’s picture

Applied. Thanks.

kir lazur’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.