You are here

public function MailTest::getLanguage in Simplenews 3.x

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

The language that should be used for this newsletter mail.

Return value

string The langcode.

Overrides MailInterface::getLanguage

File

src/Mail/MailTest.php, line 94

Class

MailTest
Example mail implementation used for tests.

Namespace

Drupal\simplenews\Mail

Code

public function getLanguage() {
  return 'en';
}