You are here

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

Expanded class hierarchy of NullFileSync

File

modules/tome_sync/src/NullFileSync.php, line 15

Namespace

Drupal\tome_sync
View 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

Namesort descending Modifiers Type Description Overrides
NullFileSync::deleteExportDirectory public function Deletes the file export directory. Overrides FileSyncInterface::deleteExportDirectory
NullFileSync::deleteFile public function Deletes an exported file by name. Overrides FileSyncInterface::deleteFile
NullFileSync::deleteFileExport public function Deletes an exported file by entity. Overrides FileSyncInterface::deleteFileExport
NullFileSync::exportFile public function Exports a file to the export directory. Overrides FileSyncInterface::exportFile
NullFileSync::importFiles public function Imports all files from the file directory. Overrides FileSyncInterface::importFiles