public function MailDataCollector::addMessage in Devel 8.2
Same name and namespace in other branches
- 8.3 webprofiler/src/DataCollector/MailDataCollector.php \Drupal\webprofiler\DataCollector\MailDataCollector::addMessage()
- 8 webprofiler/src/DataCollector/MailDataCollector.php \Drupal\webprofiler\DataCollector\MailDataCollector::addMessage()
- 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\DataCollectorCode
public function addMessage($message, MailInterface $mail) {
$class = get_class($mail);
$method = $this
->getMethodData($class, 'mail');
$this->messages[] = [
'message' => $message,
'method' => $method,
];
}