public function StructureSyncCommands::exportTaxonomies in Structure Sync 8
Same name and namespace in other branches
- 2.x src/Commands/StructureSyncCommands.php \Drupal\structure_sync\Commands\StructureSyncCommands::exportTaxonomies()
Export the taxonomies
@validate-module-enabled structure_sync
@command export:taxonomies
@aliases et,export-taxonomies
1 call to StructureSyncCommands::exportTaxonomies()
- StructureSyncCommands::exportAll in src/
Commands/ StructureSyncCommands.php - Export menu links, Taxonomy and Blocks
File
- src/
Commands/ StructureSyncCommands.php, line 30
Class
- StructureSyncCommands
- A Drush commandfile.
Namespace
Drupal\structure_sync\CommandsCode
public function exportTaxonomies() {
$this
->output()
->writeln('Exporting taxonomies...');
StructureSyncHelper::exportTaxonomies([
'drush' => TRUE,
]);
$this
->logger()
->info('Successfully exported taxonomies');
}