public function SimplenewsSourceTest::getBody in Simplenews 7.2
Same name and namespace in other branches
- 7 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 1040 - 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';
}