You are here

public function MailDataCollector::addMessage in Devel 8.2

Same name and namespace in other branches
  1. 8.3 webprofiler/src/DataCollector/MailDataCollector.php \Drupal\webprofiler\DataCollector\MailDataCollector::addMessage()
  2. 8 webprofiler/src/DataCollector/MailDataCollector.php \Drupal\webprofiler\DataCollector\MailDataCollector::addMessage()
  3. 4.x webprofiler/src/DataCollector/MailDataCollector.php \Drupal\webprofiler\DataCollector\MailDataCollector::addMessage()

Parameters

$message:

\Drupal\Core\Mail\MailInterface $mail:

File

webprofiler/src/DataCollector/MailDataCollector.php, line 48

Class

MailDataCollector
Class MailDataCollector

Namespace

Drupal\webprofiler\DataCollector

Code

public function addMessage($message, MailInterface $mail) {
  $class = get_class($mail);
  $method = $this
    ->getMethodData($class, 'mail');
  $this->messages[] = [
    'message' => $message,
    'method' => $method,
  ];
}