You are here

public function Referers::display in Visitors 8.2

Returns a referers page.

Return value

array A render array representing the referers page content.

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

File

src/Controller/Report/Referers.php, line 68
Contains Drupal\visitors\Controller\Report\Referers.

Class

Referers

Namespace

Drupal\visitors\Controller\Report

Code

public function display() {
  $form = $this->formBuilder
    ->getForm('Drupal\\visitors\\Form\\Referers');
  $header = $this
    ->_getHeader();
  return array(
    'visitors_date_filter_form' => $form,
    'visitors_table' => array(
      '#type' => 'table',
      '#header' => $header,
      '#rows' => $this
        ->_getData($header),
    ),
    'visitors_pager' => array(
      '#type' => 'pager',
    ),
  );
}