function MailDataCollector::addMessage
Parameters
$message:
\Drupal\Core\Mail\MailInterface $mail:
File
-
webprofiler/
src/ DataCollector/ MailDataCollector.php, line 48
Class
- MailDataCollector
- Class MailDataCollector
Namespace
Drupal\webprofiler\DataCollectorCode
public function addMessage($message, MailInterface $mail) {
$class = get_class($mail);
$method = $this->getMethodData($class, 'mail');
$this->messages[] = [
'message' => $message,
'method' => $method,
];
}