You are here

public function Profiler::link in XHProf 8

Generates a link to the report page for a specific run ID.

Parameters

string $run_id: The run ID.

Return value

string The rendered link.

Overrides ProfilerInterface::link

File

src/Profiler.php, line 178

Class

Profiler
Provides profiler service.

Namespace

Drupal\xhprof

Code

public function link($run_id) {
  $link = Link::createFromRoute(t('XHProf output'), 'xhprof.run', [
    'run' => $run_id,
  ], [
    'absolute' => TRUE,
  ]);
  return $link
    ->toString();
}