public function MailTest::getAttachments in Simplenews 8
Same name and namespace in other branches
- 8.2 src/Mail/MailTest.php \Drupal\simplenews\Mail\MailTest::getAttachments()
- 3.x src/Mail/MailTest.php \Drupal\simplenews\Mail\MailTest::getAttachments()
Returns an array of attachments for this newsletter mail.
Return value
array An array of managed file objects with properties uri, filemime and so on.
Overrides MailInterface::getAttachments
File
- src/
Mail/ MailTest.php, line 18
Class
- MailTest
- Example mail implementation used for tests.
Namespace
Drupal\simplenews\MailCode
public function getAttachments() {
return array(
array(
'uri' => 'example://test.png',
'filemime' => 'x-example',
'filename' => 'test.png',
),
);
}