public function WebformCompositeBase::getExportAttachments in Webform 6.x
Get files as export attachments.
This is also used to export attachments.
Parameters
array $element: An element.
\Drupal\webform\WebformSubmissionInterface $webform_submission: A webform submission.
array $options: An array of options.
Return value
array An array containing email attachments which include an attachments 'filename', 'filemime', 'filepath', and 'filecontent'.
Overrides WebformElementAttachmentInterface::getExportAttachments
See also
\Drupal\webform\WebformSubmissionExporter::writeRecords
File
- src/
Plugin/ WebformElement/ WebformCompositeBase.php, line 1551
Class
- WebformCompositeBase
- Provides a base for composite elements.
Namespace
Drupal\webform\Plugin\WebformElementCode
public function getExportAttachments(array $element, WebformSubmissionInterface $webform_submission, array $options = []) {
// Managed files are bulk copied during an export.
return [];
}