You are here

public function FormsDataCollector::getForms in Devel 8.2

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

Return value

array

1 call to FormsDataCollector::getForms()
FormsDataCollector::getFormsCount in webprofiler/src/DataCollector/FormsDataCollector.php

File

webprofiler/src/DataCollector/FormsDataCollector.php, line 48

Class

FormsDataCollector
Class FormsDataCollector

Namespace

Drupal\webprofiler\DataCollector

Code

public function getForms() {
  return !empty($this->data['forms']) && is_array($this->data['forms']) ? $this->data['forms'] : [];
}