- Merge request !13309feat: Add a command to export all content of a particular entity type, with... β (Open) created by wotnak
As we march towards better recipe authoring tools, the next logical step in having a good default content export system is the ability to export all content of a particular entity type and bundle.
Possible uses for this:
I'm sure we can think of others!
Core already has all of the necessary infrastructure for this. We just need an interface to do it.
Rather than overload the existing content:export
command, which is focused around exporting a single entity (and its dependencies), I propose we add a new command for this, whose entire purpose is to export a batch of content.
drupal content:export:all node --dir=content
drupal content:export:all node --bundle=blog --dir=my-blog
For now, let's require an entity type ID as an argument -- only one entity type at a time can be exported. Maybe in a follow-up we can expand that to automatically export all content, indiscriminately. But that feels like a separate scope.
Implement that, with some test coverage for both usage modes.
No API changes should be necessary. Combined with an entity query, core's default content exporter is already capable of this.
TBD
Active
11.0 π₯
default content system
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.