You are here

public function SwiftMailerDrupalStateLogger::sendPerformed in Swift Mailer 8

Same name and namespace in other branches
  1. 8.2 tests/modules/swiftmailer_test/src/SwiftMailerDrupalStateLogger.php \Drupal\swiftmailer_test\SwiftMailerDrupalStateLogger::sendPerformed()

File

tests/modules/swiftmailer_test/src/SwiftMailerDrupalStateLogger.php, line 18

Class

SwiftMailerDrupalStateLogger

Namespace

Drupal\swiftmailer_test

Code

public function sendPerformed(Swift_Events_SendEvent $evt) {
  $this
    ->add([
    'method' => 'sendPerformed',
    'body' => $evt
      ->getMessage()
      ->getBody(),
    'subject' => $evt
      ->getMessage()
      ->getSubject(),
  ]);
}