You are here

public function WebformElementAttachmentInterface::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'.

See also

\Drupal\webform\WebformSubmissionExporter::writeRecords

3 methods override WebformElementAttachmentInterface::getExportAttachments()
WebformAttachmentBase::getExportAttachments in modules/webform_attachment/src/Plugin/WebformElement/WebformAttachmentBase.php
Get files as export attachments.
WebformCompositeBase::getExportAttachments in src/Plugin/WebformElement/WebformCompositeBase.php
Get files as export attachments.
WebformManagedFileBase::getExportAttachments in src/Plugin/WebformElement/WebformManagedFileBase.php
Get files as export attachments.

File

src/Plugin/WebformElementAttachmentInterface.php, line 53

Class

WebformElementAttachmentInterface
Defines the interface for webform elements can provide email attachments.

Namespace

Drupal\webform\Plugin

Code

public function getExportAttachments(array $element, WebformSubmissionInterface $webform_submission, array $options = []);