You are here

public function SimplenewsSourceTest::getAttachments in Simplenews 7

Same name and namespace in other branches
  1. 7.2 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 967
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',
    ),
  );
}