public static function MenuLinksController::menuLinksImportFinishedCallback in Structure Sync 8
Same name and namespace in other branches
- 2.x src/Controller/MenuLinksController.php \Drupal\structure_sync\Controller\MenuLinksController::menuLinksImportFinishedCallback()
 
Function that signals that the import of menu links has finished.
1 call to MenuLinksController::menuLinksImportFinishedCallback()
- MenuLinksController::importMenuLinks in src/
Controller/ MenuLinksController.php  - Function to import menu links.
 
File
- src/
Controller/ MenuLinksController.php, line 454  
Class
- MenuLinksController
 - Controller for syncing menu links.
 
Namespace
Drupal\structure_sync\ControllerCode
public static function menuLinksImportFinishedCallback($success, $results, $operations) {
  StructureSyncHelper::logMessage('Flushing all caches');
  drupal_flush_all_caches();
  StructureSyncHelper::logMessage('Successfully flushed caches');
  StructureSyncHelper::logMessage('Successfully imported menu links');
  drupal_set_message(t('Successfully imported menu links'));
}