You are here

public function WebformManagedFileBase::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/WebformManagedFileBase.php, line 1460

Class

WebformManagedFileBase
Provides a base class webform 'managed_file' elements.

Namespace

Drupal\webform\Plugin\WebformElement

Code

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

  // Managed files are bulk copied during an export.
  return [];
}