You are here

private function ThemeDataCollector::getComputedData in Devel 8

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

Parameters

$index:

Return value

mixed

4 calls to ThemeDataCollector::getComputedData()
ThemeDataCollector::getBlockCount in webprofiler/src/DataCollector/ThemeDataCollector.php
ThemeDataCollector::getMacroCount in webprofiler/src/DataCollector/ThemeDataCollector.php
ThemeDataCollector::getTemplateCount in webprofiler/src/DataCollector/ThemeDataCollector.php
ThemeDataCollector::getTemplates in webprofiler/src/DataCollector/ThemeDataCollector.php

File

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

Class

ThemeDataCollector
Class ThemeDataCollector

Namespace

Drupal\webprofiler\DataCollector

Code

private function getComputedData($index) {
  if (NULL === $this->computed) {
    $this->computed = $this
      ->computeData($this
      ->getProfile());
  }
  return $this->computed[$index];
}