You are here

private function ThemeDataCollector::getComputedData in Devel 4.x

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