function ThemeDataCollector::getData

Return value

array

Overrides DrupalDataCollectorInterface::getData

File

webprofiler/src/DataCollector/ThemeDataCollector.php, line 176

Class

ThemeDataCollector
Class ThemeDataCollector

Namespace

Drupal\webprofiler\DataCollector

Code

public function getData() {
    $data = $this->data;
    $data['twig'] = [
        'callgraph' => (string) $this->getHtmlCallGraph(),
        'render_time' => $this->getTime(),
        'template_count' => $this->getTemplateCount(),
        'templates' => $this->getTemplates(),
        'block_count' => $this->getBlockCount(),
        'macro_count' => $this->getMacroCount(),
    ];
    return $data;
}