public function MailDataCollector::collect in Devel 8
Same name and namespace in other branches
- 8.3 webprofiler/src/DataCollector/MailDataCollector.php \Drupal\webprofiler\DataCollector\MailDataCollector::collect()
- 8.2 webprofiler/src/DataCollector/MailDataCollector.php \Drupal\webprofiler\DataCollector\MailDataCollector::collect()
- 4.x webprofiler/src/DataCollector/MailDataCollector.php \Drupal\webprofiler\DataCollector\MailDataCollector::collect()
Collects data for the given Request and Response.
@api
Parameters
Request $request A Request instance:
Response $response A Response instance:
\Exception $exception An Exception instance:
File
- webprofiler/
src/ DataCollector/ MailDataCollector.php, line 40
Class
- MailDataCollector
- Class MailDataCollector
Namespace
Drupal\webprofiler\DataCollectorCode
public function collect(Request $request, Response $response, \Exception $exception = NULL) {
$this->data['mail'] = $this->messages;
}