You are here

public function MailInterface::getFormat in Simplenews 3.x

Same name and namespace in other branches
  1. 8.2 src/Mail/MailInterface.php \Drupal\simplenews\Mail\MailInterface::getFormat()
  2. 8 src/Mail/MailInterface.php \Drupal\simplenews\Mail\MailInterface::getFormat()

Returns the mail format.

Return value

string The mail format as string, either 'plain' or 'html'.

2 methods override MailInterface::getFormat()
MailEntity::getFormat in src/Mail/MailEntity.php
Returns the mail format.
MailTest::getFormat in src/Mail/MailTest.php
Returns the mail format.

File

src/Mail/MailInterface.php, line 69

Class

MailInterface
A newsletter mail.

Namespace

Drupal\simplenews\Mail

Code

public function getFormat();