Update to Drupal 8.1.2. For more information, see https://www.drupal.org/project/drupal/releases/8.1.2

This commit is contained in:
Pantheon Automation 2016-06-02 15:56:09 -07:00 committed by Greg Anderson
parent 9eae24d844
commit 28556d630e
1322 changed files with 6699 additions and 2064 deletions

View file

@ -388,4 +388,5 @@ class MailFormatHelper {
// Add prefix and padding, and restore linebreak.
return $text . $prefix . str_repeat($pad, $n) . "\n";
}
}

View file

@ -61,4 +61,5 @@ interface MailInterface {
* TRUE if the mail was successfully accepted for delivery, otherwise FALSE.
*/
public function mail(array $message);
}

View file

@ -23,10 +23,11 @@ interface MailManagerInterface extends PluginManagerInterface {
*
* Finding out what language to send the email with needs some consideration.
* If you send email to a user, her preferred language should be fine, so use
* user_preferred_langcode(). If you send email based on form values filled on
* the page, there are two additional choices if you are not sending the email
* to a user on the site. You can either use the language used to generate the
* page or the site default language. See
* \Drupal\Core\Session\AccountInterface::getPreferredAdminLangcode(). If you
* send email based on form values filled on the page, there are two
* additional choices if you are not sending the email to a user on the site.
* You can either use the language used to generate the page or the site
* default language. See
* Drupal\Core\Language\LanguageManagerInterface::getDefaultLanguage(). The
* former is good if sending email to the person filling the form, the later
* is good if you send email to an address previously set up (like contact
@ -46,7 +47,7 @@ interface MailManagerInterface extends PluginManagerInterface {
* $params['account'] = $account;
* // example_mail() will be called based on the first
* // MailManagerInterface->mail() parameter.
* \Drupal::service('plugin.manager.mail')->mail('example', 'notice', $account->mail, user_preferred_langcode($account), $params);
* \Drupal::service('plugin.manager.mail')->mail('example', 'notice', $account->mail, $langcode, $params);
* }
* }
*

View file

@ -111,4 +111,5 @@ class PhpMail implements MailInterface {
return $mail_result;
}
}

View file

@ -27,4 +27,5 @@ class TestMailCollector extends PhpMail implements MailInterface {
return TRUE;
}
}