function backup_migrate_destination::create_info_file in Backup and Migrate 8.3
Same name and namespace in other branches
- 8.2 includes/destinations.inc \backup_migrate_destination::create_info_file()
- 6.3 includes/destinations.inc \backup_migrate_destination::create_info_file()
- 7.3 includes/destinations.inc \backup_migrate_destination::create_info_file()
- 7.2 includes/destinations.inc \backup_migrate_destination::create_info_file()
Create an ini file and write the meta data.
1 call to backup_migrate_destination::create_info_file()
- backup_migrate_destination::save_file_info in includes/
destinations.inc - Save the file metadata
File
- includes/
destinations.inc, line 906
Class
- backup_migrate_destination
- A base class for creating destinations.
Code
function create_info_file($file) {
$info = $this
->_file_info_file($file);
$data = _backup_migrate_array_to_ini($file->file_info);
$info
->put_contents($data);
return $info;
}