Issue #3547119 by phenaproxima, thejimbirch, wotnak, oily, smustgrave: Add a...
Issue #3547119 by phenaproxima, thejimbirch, wotnak, oily, smustgrave: Add a command to export all content of a particular entity type, with optional filtering by bundle
(cherry picked from commit 3bfa87d3)
@@ -38,11 +40,16 @@ public function __construct(object $class_loader) {
*/
protectedfunctionconfigure():void{
$this
->setDescription('Exports a single content entity in YAML format.')
->addArgument('entity_type_id',InputArgument::REQUIRED,'The type of entity to export (e.g., node, taxonomy_term).')
->addArgument('entity_id',InputArgument::REQUIRED,'The ID of the entity to export. Will usually be a number.')
->setDescription('Exports content entities in YAML format.')
->addArgument('entity_type_id',InputArgument::REQUIRED,'The entity type to export (e.g., node, taxonomy_term).')
->addArgument('entity_id',InputArgument::OPTIONAL,'The ID of the entity to export. Will usually be a number.')
->addOption('with-dependencies','W',InputOption::VALUE_NONE,"Recursively export all of the entities referenced by this entity into a directory structure.")
->addOption('dir','d',InputOption::VALUE_REQUIRED,'The path where content should be exported.');
->addOption('bundle','b',InputOption::VALUE_REQUIRED|InputOption::VALUE_IS_ARRAY,'Only export entities of the specified bundle(s).')
->addOption('dir','d',InputOption::VALUE_REQUIRED,'The path where content should be exported.')