You are here

protected function ExportDataPolicy::getBaseOutputDirectory in Data Policy 8

Returns the directory that forms the base for this exports file output.

This method wraps file_directory_temp() to give inheriting classes the ability to use a different file system than the temporary file system. This was previously possible but was changed in #3075818.

Return value

string The path to the Drupal directory that should be used for this export.

1 call to ExportDataPolicy::getBaseOutputDirectory()
ExportDataPolicy::executeMultiple in modules/data_policy_export/src/Plugin/Action/ExportDataPolicy.php

File

modules/data_policy_export/src/Plugin/Action/ExportDataPolicy.php, line 230

Class

ExportDataPolicy
Exports data policies to CSV.

Namespace

Drupal\data_policy_export\Plugin\Action

Code

protected function getBaseOutputDirectory() : string {
  return file_directory_temp();
}