public function FormsDataCollector::collect in Devel 8.2
Same name and namespace in other branches
- 8.3 webprofiler/src/DataCollector/FormsDataCollector.php \Drupal\webprofiler\DataCollector\FormsDataCollector::collect()
- 8 webprofiler/src/DataCollector/FormsDataCollector.php \Drupal\webprofiler\DataCollector\FormsDataCollector::collect()
- 4.x webprofiler/src/DataCollector/FormsDataCollector.php \Drupal\webprofiler\DataCollector\FormsDataCollector::collect()
File
- webprofiler/
src/ DataCollector/ FormsDataCollector.php, line 37
Class
- FormsDataCollector
- Class FormsDataCollector
Namespace
Drupal\webprofiler\DataCollectorCode
public function collect(Request $request, Response $response, \Exception $exception = NULL) {
$this->data['forms'] = [];
if ($this->formBuilder instanceof FormBuilderWrapper) {
$this->data['forms'] = $this->formBuilder
->getBuildForm();
}
}