Problem/Motivation
Drupal 10.3+ include the new Recipes APIs, including a new API for default content:
https://www.drupal.org/node/3445169
Proposed resolution
Build Drush functions to export content in a format that works with core's Default Content API.
Add Drush functions to recreate existing exported content in the new structure.
Remaining tasks
Build Drush functions to export content in a format that works with core's Default Content API.
User interface changes
All output would use core's Default Content APIs.
API changes
TBD
Data model changes
TBD
Issue fork default_content-3457855
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
berdirThe format that core uses is identical to default content, we don't need to rewrite it.
It's still internal, but we can try running our tests against the core implementation.
Comment #4
berdirStarted with an initial test of replacing the importer completely. Tests are failing, one case seems to be that it doesn't like non-existing fields.
A more feasible approach is likely to wrap it inside since the API has changed, that should make the transition easier, and we could then look into deprecating our API.
Comment #6
andypostrebased on top of latest 2.0.x and except changes in
\Drupal\default_content\Importer::importContent()looks it no longer can importhal_jsonwhich means that's 3.x materialPS: Using PHP 8.4 showing lots of warnings so filed #3470061: [PHP 8.4] Fix implicitly nullable type declarations