When trying to create a new Entities Import Type the error occured:

Drupal\Core\Config\Schema\SchemaIncompleteException: Entity type 'Drupal\entities_import\Entity\EntitiesImportType' is missing 'config_export' definition in its annotation in Drupal\Core\Config\Entity\ConfigEntityBase->toArray() (line 251 of /***/public_html/web/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php).

CommentFileSizeAuthor
#5 3205714-5.patch593 byteslarisse
#3 3205714-3.patch635 byteslarisse

Comments

4everzip created an issue. See original summary.

sebaz’s picture

It's about Configuration entity can declare which properties need export using annotations

try to add

 *   config_export = {
 *     "id",
 *     "label",
 *   }

to definition of EntitiesImportType in /src/Entity/EntitiesImportType.php

larisse’s picture

Status: Active » Needs review
StatusFileSize
new635 bytes

Hi! I created a patch with informations described in #2.

sebaz’s picture

locked and pattern does not exist in EntitiesImportType, only id, and label as I mentioned in #2.

larisse’s picture

StatusFileSize
new593 bytes

Opss, sorry! A new patch.

larisse’s picture

guilmour-asc’s picture

Hello.
Trying the given patch (second one by @larisse), my result didn't change.
The creation's trial still gives the error.

Correcting my words: The patch worked flawlessly! My error's persistence was due to cache.
For anyone in the same situation, just do a cache-rebuild before retry.

paulocs’s picture

Status: Needs review » Reviewed & tested by the community

Moving to RTBC becauae of #7.

sebaz’s picture

#7 is edited and issue is solved, and can be added to stable release.

elavarasan r’s picture

Version: 8.x-1.0 » 2.0.0
Status: Reviewed & tested by the community » Fixed

Fixed in new release.

elavarasan r’s picture

Status: Fixed » Closed (fixed)