interface FileSyncInterface in Tome 8
Abstractly handles file import and exports.
Hierarchy
- interface \Drupal\tome_sync\FileSyncInterface
Expanded class hierarchy of FileSyncInterface
All classes that implement FileSyncInterface
1 file declares its use of FileSyncInterface
- CleanFilesCommand.php in modules/
tome_sync/ src/ Commands/ CleanFilesCommand.php
File
- modules/
tome_sync/ src/ FileSyncInterface.php, line 10
Namespace
Drupal\tome_syncView source
interface FileSyncInterface {
/**
* Imports all files from the file directory.
*/
public function importFiles();
/**
* Deletes the file export directory.
*
* @return bool
* Whether or not the deletion was successful.
*/
public function deleteExportDirectory();
/**
* Exports a file to the export directory.
*
* @param \Drupal\file\FileInterface $file
* The file entity.
*/
public function exportFile(FileInterface $file);
/**
* Deletes an exported file by entity.
*
* @param \Drupal\file\FileInterface $file
* The file entity.
*/
public function deleteFileExport(FileInterface $file);
/**
* Deletes an exported file by name.
*
* @param string $filename
* The file name.
*/
public function deleteFile($filename);
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
FileSyncInterface:: |
public | function | Deletes the file export directory. | 2 |
FileSyncInterface:: |
public | function | Deletes an exported file by name. | 2 |
FileSyncInterface:: |
public | function | Deletes an exported file by entity. | 2 |
FileSyncInterface:: |
public | function | Exports a file to the export directory. | 2 |
FileSyncInterface:: |
public | function | Imports all files from the file directory. | 2 |