class NullFileSync in Tome 8
Implements all file sync methods as no-ops.
This is useful for sites that do not store files in Git, or want to implement their own syncing strategy for files.
@internal
Hierarchy
- class \Drupal\tome_sync\NullFileSync implements FileSyncInterface
Expanded class hierarchy of NullFileSync
File
- modules/
tome_sync/ src/ NullFileSync.php, line 15
Namespace
Drupal\tome_syncView source
class NullFileSync implements FileSyncInterface {
/**
* {@inheritdoc}
*/
public function importFiles() {
}
/**
* {@inheritdoc}
*/
public function deleteExportDirectory() {
return TRUE;
}
/**
* {@inheritdoc}
*/
public function exportFile(FileInterface $file) {
}
/**
* {@inheritdoc}
*/
public function deleteFileExport(FileInterface $file) {
}
/**
* {@inheritdoc}
*/
public function deleteFile($filename) {
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
NullFileSync:: |
public | function |
Deletes the file export directory. Overrides FileSyncInterface:: |
|
NullFileSync:: |
public | function |
Deletes an exported file by name. Overrides FileSyncInterface:: |
|
NullFileSync:: |
public | function |
Deletes an exported file by entity. Overrides FileSyncInterface:: |
|
NullFileSync:: |
public | function |
Exports a file to the export directory. Overrides FileSyncInterface:: |
|
NullFileSync:: |
public | function |
Imports all files from the file directory. Overrides FileSyncInterface:: |