public function ExportMember::getFileTemporaryPath in Open Social 8.5
Returns unique file path.
Return value
string The path to the file.
Overrides ExportUser::getFileTemporaryPath
File
- modules/
social_features/ social_group/ modules/ social_group_members_export/ src/ Plugin/ Action/ ExportMember.php, line 51
Class
- ExportMember
- Exports a group member accounts to CSV.
Namespace
Drupal\social_group_members_export\Plugin\ActionCode
public function getFileTemporaryPath() {
$hash = md5(microtime(TRUE));
$filename = 'export-members-' . substr($hash, 20, 12) . '.csv';
return file_directory_temp() . '/' . $filename;
}