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

Command icon 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

DamienMcKenna created an issue. See original summary.

berdir’s picture

The 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.

berdir’s picture

Status: Active » Needs work

Started 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.

andypost made their first commit to this issue’s fork.

andypost’s picture

rebased on top of latest 2.0.x and except changes in \Drupal\default_content\Importer::importContent() looks it no longer can import hal_json which means that's 3.x material

PS: Using PHP 8.4 showing lots of warnings so filed #3470061: [PHP 8.4] Fix implicitly nullable type declarations