You are here

public function ExportUser::getFileTemporaryPath in Open Social 8.5

Returns unique file path.

Return value

string The path to the file.

1 call to ExportUser::getFileTemporaryPath()
ExportUser::executeMultiple in modules/social_features/social_user_export/src/Plugin/Action/ExportUser.php
2 methods override ExportUser::getFileTemporaryPath()
ExportEnrolments::getFileTemporaryPath in modules/social_features/social_event/modules/social_event_enrolments_export/src/Plugin/Action/ExportEnrolments.php
Returns unique file path.
ExportMember::getFileTemporaryPath in modules/social_features/social_group/modules/social_group_members_export/src/Plugin/Action/ExportMember.php
Returns unique file path.

File

modules/social_features/social_user_export/src/Plugin/Action/ExportUser.php, line 179

Class

ExportUser
Exports a user accounts to CSV.

Namespace

Drupal\social_user_export\Plugin\Action

Code

public function getFileTemporaryPath() {
  $hash = md5(microtime(TRUE));
  $filename = 'export-users-' . substr($hash, 20, 12) . '.csv';
  return file_directory_temp() . '/' . $filename;
}