public function WebformElementAttachmentInterface::getAttachments in Webform 8.5
Get email 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\mimemail\Utility\MimeMailFormatHelper::mimeMailHtmlBody
\Drupal\smtp\Plugin\Mail\SMTPMailSystem::mail
\Drupal\swiftmailer\Plugin\Mail\SwiftMailer::attachAsMimeMail
3 methods override WebformElementAttachmentInterface::getAttachments()
- WebformAttachmentBase::getAttachments in modules/
webform_attachment/ src/ Plugin/ WebformElement/ WebformAttachmentBase.php - Get email attachments.
- WebformCompositeBase::getAttachments in src/
Plugin/ WebformElement/ WebformCompositeBase.php - Get email attachments.
- WebformManagedFileBase::getAttachments in src/
Plugin/ WebformElement/ WebformManagedFileBase.php - Get email attachments.
File
- src/
Plugin/ WebformElementAttachmentInterface.php, line 30
Class
- WebformElementAttachmentInterface
- Defines the interface for webform elements can provide email attachments.
Namespace
Drupal\webform\PluginCode
public function getAttachments(array $element, WebformSubmissionInterface $webform_submission, array $options = []);