public function SimplenewsSourceTest::getAttachments in Simplenews 7.2
Same name and namespace in other branches
- 7 includes/simplenews.source.inc \SimplenewsSourceTest::getAttachments()
Returns an array of attachments for this newsletter mail.
Return value
An array of managed file objects with properties uri, filemime and so on.
Overrides SimplenewsSourceInterface::getAttachments
File
- includes/
simplenews.source.inc, line 1030 - Contains SimplenewsSource interface and implementations.
Class
- SimplenewsSourceTest
- Example source implementation used for tests.
Code
public function getAttachments() {
return array(
array(
'uri' => 'example://test.png',
'filemime' => 'x-example',
'filename' => 'test.png',
),
);
}