You are here

public function MailDataCollector::collect in Devel 8.3

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

Collects data for the given Request and Response.

@api

Parameters

\Symfony\Component\HttpFoundation\Request $request: A Request instance.

\Symfony\Component\HttpFoundation\Response $response: A Response instance.

\Exception $exception: An Exception instance.

File

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

Class

MailDataCollector
Class MailDataCollector.

Namespace

Drupal\webprofiler\DataCollector

Code

public function collect(Request $request, Response $response, \Exception $exception = NULL) {
  $this->data['mail'] = $this->messages;
}