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.
Problem/Motivation
Exporting configurations is now supported and helps with performance when creating an array from the schema file. Since a recent change, ConfigEntityType annotation can declare an array of config entities to export, which saves a lot of time, for example during site install.
Proposed resolution
Apply the patch.
Remaining tasks
None
User interface changes
None
API changes
None
Comment | File | Size | Author |
---|---|---|---|
#9 | add_config_export_to-2485581-9.patch | 1.08 KB | LKS90 |
| |||
#1 | configExport_2485581_1.patch | 2.02 KB | LKS90 |
Comments
Comment #1
LKS90 CreditAttribution: LKS90 at MD Systems GmbH commentedHere is the patch, test are passing, default config is okay :).
Comment #4
BerdirLooks good I think.
This helps with install performance, if we can install everything of a module without having to rebuild the typed config definitions then we can save quite a bit of processing, especially when multiple modules are installed together.
Comment #6
drunken monkeyThanks a lot for your work!
Committed.
Comment #7
drunken monkeyAfter reading through #2273631: Unify config entity schemas with a base schema type, it seems to me we should remove the keys in the
config_entity
schema (uuid
,langcode
,status
,dependencies
andthird_party_settings
) from our own schema definitions when changing their type toconfig_entity
? Or is there a reason to keep them?Comment #8
LKS90 CreditAttribution: LKS90 at MD Systems GmbH commentedI changed the type from
mapping
toconfig_entity
in this issue (to get the tests to pass :D).Berdir said they can be removed, only our own keys have to be listed. Will provide a patch later.
Comment #9
LKS90 CreditAttribution: LKS90 at MD Systems GmbH commentedHere is the patch that removes the unnecessary keys from the annotation.
Comment #10
drunken monkeyThanks! Committed.