Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Since Drupal 8.6.0, it is recommended that configuration entity types include the config_export
property in their annotation.
See change record: Move schema fallback from ConfigEntity::toArray() to ConfigEntityType::getPropertiesToExport()
There is an example of this in the handbook page: Creating a configuration entity type.
Comment | File | Size | Author |
---|---|---|---|
#3 | 3158628-3.patch | 699 bytes | andrewmacpherson |
Comments
Comment #2
andrewmacpherson CreditAttribution: andrewmacpherson as a volunteer commentedWithout the
config_export
property in the entity type annotation, you'll get errors when performing a site install from existing config (drush site-install --use-existing
):I noticed this during rehearsal for a Drupal 9 upgrade, but I haven't seen the errors when using D8.
Comment #3
andrewmacpherson CreditAttribution: andrewmacpherson as a volunteer commentedComment #4
andrewmacpherson CreditAttribution: andrewmacpherson as a volunteer commentedComment #5
e0ipsoThis looks good to me. Thanks for the patch!
Comment #6
e0ipsoComment #8
pratik_kambleThanks @andrewmacpherson and @e0ipso I have committed the patch to 4.x dev branch.
Comment #10
JFeltkampPatch #3 works for mee too