function ThemeDataCollector::getProfile

Return value

mixed|\Twig_Profiler_Profile

2 calls to ThemeDataCollector::getProfile()
ThemeDataCollector::getComputedData in webprofiler/src/DataCollector/ThemeDataCollector.php
ThemeDataCollector::getHtmlCallGraph in webprofiler/src/DataCollector/ThemeDataCollector.php

File

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

Class

ThemeDataCollector
Class ThemeDataCollector

Namespace

Drupal\webprofiler\DataCollector

Code

private function getProfile() {
    if (NULL === $this->profile) {
        $this->profile = unserialize($this->data['twig']);
    }
    return $this->profile;
}