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