protected function ExportUser::generateFilePath in Open Social 8.6
Same name and namespace in other branches
- 8.9 modules/social_features/social_user_export/src/Plugin/Action/ExportUser.php \Drupal\social_user_export\Plugin\Action\ExportUser::generateFilePath()
- 8.7 modules/social_features/social_user_export/src/Plugin/Action/ExportUser.php \Drupal\social_user_export\Plugin\Action\ExportUser::generateFilePath()
- 8.8 modules/social_features/social_user_export/src/Plugin/Action/ExportUser.php \Drupal\social_user_export\Plugin\Action\ExportUser::generateFilePath()
- 10.3.x modules/social_features/social_user_export/src/Plugin/Action/ExportUser.php \Drupal\social_user_export\Plugin\Action\ExportUser::generateFilePath()
- 10.0.x modules/social_features/social_user_export/src/Plugin/Action/ExportUser.php \Drupal\social_user_export\Plugin\Action\ExportUser::generateFilePath()
- 10.1.x modules/social_features/social_user_export/src/Plugin/Action/ExportUser.php \Drupal\social_user_export\Plugin\Action\ExportUser::generateFilePath()
- 10.2.x modules/social_features/social_user_export/src/Plugin/Action/ExportUser.php \Drupal\social_user_export\Plugin\Action\ExportUser::generateFilePath()
Returns a unique file path for this export.
The returned path is relative to getBaseOutputDirectory(). This allows it to work on distributed systems where the temporary file path may change in between batch ticks.
Return value
string The path to the file.
1 call to ExportUser::generateFilePath()
- ExportUser::executeMultiple in modules/
social_features/ social_user_export/ src/ Plugin/ Action/ ExportUser.php
2 methods override ExportUser::generateFilePath()
- ExportEnrolments::generateFilePath in modules/
social_features/ social_event/ modules/ social_event_enrolments_export/ src/ Plugin/ Action/ ExportEnrolments.php - Returns a unique file path for this export.
- ExportMember::generateFilePath in modules/
social_features/ social_group/ modules/ social_group_members_export/ src/ Plugin/ Action/ ExportMember.php - Returns a unique file path for this export.
File
- modules/
social_features/ social_user_export/ src/ Plugin/ Action/ ExportUser.php, line 204
Class
- ExportUser
- Exports a user accounts to CSV.
Namespace
Drupal\social_user_export\Plugin\ActionCode
protected function generateFilePath() : string {
$hash = md5(microtime(TRUE));
return 'export-users-' . substr($hash, 20, 12) . '.csv';
}