You are here

public function WebformExporterBase::getFileTempDirectory in Webform 8.5

Same name and namespace in other branches
  1. 6.x src/Plugin/WebformExporterBase.php \Drupal\webform\Plugin\WebformExporterBase::getFileTempDirectory()

Get export file temp directory.

Return value

string The export file temp directory.

Overrides WebformExporterInterface::getFileTempDirectory

2 calls to WebformExporterBase::getFileTempDirectory()
WebformExporterBase::getArchiveFilePath in src/Plugin/WebformExporterBase.php
Get archive file name and path for a webform.
WebformExporterBase::getExportFilePath in src/Plugin/WebformExporterBase.php
Get export file path.

File

src/Plugin/WebformExporterBase.php, line 265

Class

WebformExporterBase
Provides a base class for a results exporter.

Namespace

Drupal\webform\Plugin

Code

public function getFileTempDirectory() {
  return $this->configFactory
    ->get('webform.settings')
    ->get('export.temp_directory') ?: \Drupal::service('file_system')
    ->getTempDirectory();
}