You are here

private function XHProfController::getCurrentFunctionRows in XHProf 8

1 call to XHProfController::getCurrentFunctionRows()
XHProfController::getRunRows in src/Controller/XHProfController.php

File

src/Controller/XHProfController.php, line 335

Class

XHProfController
Displays profiling results.

Namespace

Drupal\xhprof\Controller

Code

private function getCurrentFunctionRows($symbol, &$rows) {
  $rows[] = [
    [
      'data' => new FormattableMarkup('<strong>@value</strong>', [
        '@value' => $this
          ->t('Current function'),
      ]),
      'colspan' => \count($symbol),
    ],
  ];
  $symbol[0] = Link::fromTextAndUrl($symbol[0], Url::fromRoute('<current>'));
  $rows[] = $symbol;
  return $rows;
}