You are here

private function ThemeDataCollector::getProfile in Devel 8

Same name and namespace in other branches
  1. 8.3 webprofiler/src/DataCollector/ThemeDataCollector.php \Drupal\webprofiler\DataCollector\ThemeDataCollector::getProfile()
  2. 8.2 webprofiler/src/DataCollector/ThemeDataCollector.php \Drupal\webprofiler\DataCollector\ThemeDataCollector::getProfile()
  3. 4.x webprofiler/src/DataCollector/ThemeDataCollector.php \Drupal\webprofiler\DataCollector\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;
}