You are here

public function MetadataWriter::setUp in Backup and Migrate 8.4

Run before the backup/restore begins.

File

lib/backup_migrate_core/src/Filter/MetadataWriter.php, line 80

Class

MetadataWriter
Class MetadataWriter.

Namespace

BackupMigrate\Core\Filter

Code

public function setUp($operand, $options) {
  if ($options['operation'] == 'backup' && $options['source_id']) {
    $this
      ->config()
      ->set('bam_sourceid', $options['source_id']);
    if ($source = $this
      ->plugins()
      ->get($options['source_id'])) {

      // @TODO Query the source for it's type and name.
    }
  }
  return $operand;
}