You are here

protected function ExportMember::generateFilePath in Open Social 10.3.x

Same name and namespace in other branches
  1. 8.9 modules/social_features/social_group/modules/social_group_members_export/src/Plugin/Action/ExportMember.php \Drupal\social_group_members_export\Plugin\Action\ExportMember::generateFilePath()
  2. 8.6 modules/social_features/social_group/modules/social_group_members_export/src/Plugin/Action/ExportMember.php \Drupal\social_group_members_export\Plugin\Action\ExportMember::generateFilePath()
  3. 8.7 modules/social_features/social_group/modules/social_group_members_export/src/Plugin/Action/ExportMember.php \Drupal\social_group_members_export\Plugin\Action\ExportMember::generateFilePath()
  4. 8.8 modules/social_features/social_group/modules/social_group_members_export/src/Plugin/Action/ExportMember.php \Drupal\social_group_members_export\Plugin\Action\ExportMember::generateFilePath()
  5. 10.0.x modules/social_features/social_group/modules/social_group_members_export/src/Plugin/Action/ExportMember.php \Drupal\social_group_members_export\Plugin\Action\ExportMember::generateFilePath()
  6. 10.1.x modules/social_features/social_group/modules/social_group_members_export/src/Plugin/Action/ExportMember.php \Drupal\social_group_members_export\Plugin\Action\ExportMember::generateFilePath()
  7. 10.2.x modules/social_features/social_group/modules/social_group_members_export/src/Plugin/Action/ExportMember.php \Drupal\social_group_members_export\Plugin\Action\ExportMember::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_group/modules/social_group_members_export/src/Plugin/Action/ExportMember.php, line 56

Class

ExportMember
Exports a group member accounts to CSV.

Namespace

Drupal\social_group_members_export\Plugin\Action

Code

protected function generateFilePath() : string {
  $hash = md5(microtime(TRUE));
  return 'export-members-' . substr($hash, 20, 12) . '.csv';
}