You are here

public function SimplenewsSourceTest::getBody in Simplenews 7

Same name and namespace in other branches
  1. 7.2 includes/simplenews.source.inc \SimplenewsSourceTest::getBody()

Returns the mail body.

The body should either be plaintext or html, depending on the format.

Overrides SimplenewsSourceInterface::getBody

File

includes/simplenews.source.inc, line 977
Contains SimplenewsSource interface and implementations.

Class

SimplenewsSourceTest
Example source implementation used for tests.

Code

public function getBody() {
  return $this
    ->getFormat() == 'plain' ? $this
    ->getPlainBody() : 'the body';
}