You are here

protected static function ContactStorageExportBatches::getTempFile in Contact Storage Export 8

Get the temp file.

Return value

\Drupal\file\FileInterface The temporary file.

Throws

\Drupal\Core\Entity\EntityStorageException

2 calls to ContactStorageExportBatches::getTempFile()
ContactStorageExportBatches::processBatch in src/ContactStorageExportBatches.php
Process callback for the batch set the export form.
ContactStorageExportBatches::writeToTempFile in src/ContactStorageExportBatches.php
Write to the temp file.

File

src/ContactStorageExportBatches.php, line 243

Class

ContactStorageExportBatches
Class ContactStorageExportBatches.

Namespace

Drupal\contact_storage_export

Code

protected static function getTempFile() {
  if (!self::$tempFile) {
    self::$tempFile = self::createTempFile();
  }
  return self::$tempFile;
}