You are here

public function HitDetails::display in Visitors 8.2

Returns a hit details page.

Return value

array A render array representing the hit details page content.

1 string reference to 'HitDetails::display'
visitors.routing.yml in ./visitors.routing.yml
visitors.routing.yml

File

src/Controller/Report/HitDetails.php, line 49
Contains Drupal\visitors\Controller\Report\HitDetails.

Class

HitDetails

Namespace

Drupal\visitors\Controller\Report

Code

public function display($hit_id) {
  return array(
    'visitors_table' => array(
      '#type' => 'table',
      '#rows' => $this
        ->_getData($hit_id),
    ),
  );
}