Needs work
Project:
Default Content
Version:
2.0.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
28 Jun 2024 at 13:41 UTC
Updated:
24 Aug 2024 at 12:58 UTC
Jump to comment: Most recent
Drupal 10.3+ include the new Recipes APIs, including a new API for default content:
https://www.drupal.org/node/3445169
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.
Build Drush functions to export content in a format that works with core's Default Content API.
All output would use core's Default Content APIs.
TBD
TBD
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