You are here

protected function ContentIndexerTrait::deleteContentIndex in Tome 8

Deletes the index file.

1 call to ContentIndexerTrait::deleteContentIndex()
Exporter::deleteExportDirectories in modules/tome_sync/src/Exporter.php
Deletes all content and files from the export directories.

File

modules/tome_sync/src/ContentIndexerTrait.php, line 163

Class

ContentIndexerTrait
Provides methods for reading and writing the index file.

Namespace

Drupal\tome_sync

Code

protected function deleteContentIndex() {
  $destination = $this
    ->getContentIndexFilePath();
  if (is_file($destination)) {
    unlink($destination);
  }
}