diff --git a/core/lib/Drupal/Core/Mail/Plugin/Mail/PhpMail.php b/core/lib/Drupal/Core/Mail/Plugin/Mail/PhpMail.php index fba97bf..2d1f328 100644 --- a/core/lib/Drupal/Core/Mail/Plugin/Mail/PhpMail.php +++ b/core/lib/Drupal/Core/Mail/Plugin/Mail/PhpMail.php @@ -2,7 +2,7 @@ /** * @file - * Definition of Drupal\Core\Mail\Plugin\Mail\PhpMail. + * Contains Drupal\Core\Mail\Plugin\Mail\PhpMail. */ namespace Drupal\Core\Mail\Plugin\Mail; @@ -10,11 +10,11 @@ use Drupal\Core\Mail\MailInterface; /** - * The default Drupal mail backend using PHP's mail function. + * Defines the default Drupal mail backend, using PHP's native mail() function. * * @Mail( * id = "php_mail", - * label = @Translation("PHP Mailer"), + * label = @Translation("Default PHP mailer"), * description = @Translation("Sends the message as plain text, using PHP's native mail() function.") * ) */ diff --git a/core/lib/Drupal/Core/Mail/Plugin/Mail/TestMailCollector.php b/core/lib/Drupal/Core/Mail/Plugin/Mail/TestMailCollector.php index d4e2cc9..1579e88 100644 --- a/core/lib/Drupal/Core/Mail/Plugin/Mail/TestMailCollector.php +++ b/core/lib/Drupal/Core/Mail/Plugin/Mail/TestMailCollector.php @@ -10,23 +10,20 @@ use Drupal\Core\Mail\MailInterface; /** - * Defines a mail sending implementation that captures sent messages to the - * state system. + * Defines a mail backend that captures sent messages in the state system. * * This class is for running tests or for development. * * @Mail( * id = "test_mail_collector", - * label = @Translation("Mail Collector"), + * label = @Translation("Mail collector"), * description = @Translation("Does not send the message, but stores it in Drupal within the state system. Used for testing.") * ) */ class TestMailCollector extends PhpMail implements MailInterface { /** - * Overrides \Drupal\Core\Mail\Plugin\Mail\PhpMail::mail(). - * - * Accepts an e-mail message and stores it with the state system. + * {@inheritdoc} */ public function mail(array $message) { $captured_emails = \Drupal::state()->get('system.test_mail_collector') ?: array(); diff --git a/core/modules/system/tests/modules/system_mail_failure_test/lib/Drupal/system_mail_failure_test/Plugin/Mail/TestPhpMailFailure.php b/core/modules/system/tests/modules/system_mail_failure_test/lib/Drupal/system_mail_failure_test/Plugin/Mail/TestPhpMailFailure.php index 2ada2e3..1a89fa6 100644 --- a/core/modules/system/tests/modules/system_mail_failure_test/lib/Drupal/system_mail_failure_test/Plugin/Mail/TestPhpMailFailure.php +++ b/core/modules/system/tests/modules/system_mail_failure_test/lib/Drupal/system_mail_failure_test/Plugin/Mail/TestPhpMailFailure.php @@ -11,7 +11,7 @@ use Drupal\Core\Mail\MailInterface; /** - * Defines a mail sending implementation that returns false. + * Defines a mail sending implementation that always fails. * * This class is for running tests or for development. To use set the * configuration: @@ -28,9 +28,7 @@ class TestPhpMailFailure extends PhpMail implements MailInterface { /** - * Overrides Drupal\Core\Mail\Plugin\Mail\PhpMail::mail(). - * - * Intentionally fails to send the message. + * {@inheritdoc} */ public function mail(array $message) { return FALSE;