You are here

public function StructureSyncCommands::exportMenus in Structure Sync 8

Same name and namespace in other branches
  1. 2.x src/Commands/StructureSyncCommands.php \Drupal\structure_sync\Commands\StructureSyncCommands::exportMenus()

Export menu links

@validate-module-enabled structure_sync

@command export:menus @aliases em,export-menus

1 call to StructureSyncCommands::exportMenus()
StructureSyncCommands::exportAll in src/Commands/StructureSyncCommands.php
Export menu links, Taxonomy and Blocks

File

src/Commands/StructureSyncCommands.php, line 138

Class

StructureSyncCommands
A Drush commandfile.

Namespace

Drupal\structure_sync\Commands

Code

public function exportMenus() {
  $this
    ->output()
    ->writeln('Exporting menu links...');
  StructureSyncHelper::exportMenuLinks([
    'drush' => TRUE,
  ]);
  $this
    ->logger()
    ->info('Successfully exported menu links');
}