You are here

public function MailInterface::getLanguage in Simplenews 3.x

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

The language that should be used for this newsletter mail.

Return value

string The langcode.

2 methods override MailInterface::getLanguage()
MailEntity::getLanguage in src/Mail/MailEntity.php
The language that should be used for this newsletter mail.
MailTest::getLanguage in src/Mail/MailTest.php
The language that should be used for this newsletter mail.

File

src/Mail/MailInterface.php, line 85

Class

MailInterface
A newsletter mail.

Namespace

Drupal\simplenews\Mail

Code

public function getLanguage();