protected function ExportEnrolments::generateFilePath in Open Social 8.8
Same name and namespace in other branches
- 8.9 modules/social_features/social_event/modules/social_event_enrolments_export/src/Plugin/Action/ExportEnrolments.php \Drupal\social_event_enrolments_export\Plugin\Action\ExportEnrolments::generateFilePath()
- 8.6 modules/social_features/social_event/modules/social_event_enrolments_export/src/Plugin/Action/ExportEnrolments.php \Drupal\social_event_enrolments_export\Plugin\Action\ExportEnrolments::generateFilePath()
- 8.7 modules/social_features/social_event/modules/social_event_enrolments_export/src/Plugin/Action/ExportEnrolments.php \Drupal\social_event_enrolments_export\Plugin\Action\ExportEnrolments::generateFilePath()
- 10.3.x modules/social_features/social_event/modules/social_event_enrolments_export/src/Plugin/Action/ExportEnrolments.php \Drupal\social_event_enrolments_export\Plugin\Action\ExportEnrolments::generateFilePath()
- 10.0.x modules/social_features/social_event/modules/social_event_enrolments_export/src/Plugin/Action/ExportEnrolments.php \Drupal\social_event_enrolments_export\Plugin\Action\ExportEnrolments::generateFilePath()
- 10.1.x modules/social_features/social_event/modules/social_event_enrolments_export/src/Plugin/Action/ExportEnrolments.php \Drupal\social_event_enrolments_export\Plugin\Action\ExportEnrolments::generateFilePath()
- 10.2.x modules/social_features/social_event/modules/social_event_enrolments_export/src/Plugin/Action/ExportEnrolments.php \Drupal\social_event_enrolments_export\Plugin\Action\ExportEnrolments::generateFilePath()
To make sure the file can be downloaded, the path must be declared in the download pattern of the social user export module.
Overrides ExportUser::generateFilePath
See also
social_user_export_file_download()
File
- modules/
social_features/ social_event/ modules/ social_event_enrolments_export/ src/ Plugin/ Action/ ExportEnrolments.php, line 57
Class
- ExportEnrolments
- Exports a event enrollment accounts to CSV.
Namespace
Drupal\social_event_enrolments_export\Plugin\ActionCode
protected function generateFilePath() : string {
$hash = md5(microtime(TRUE));
return 'export-enrollments-' . substr($hash, 20, 12) . '.csv';
}