You are here

public function Countries::display in Visitors 8.2

Returns a countries page.

Return value

array A render array representing the countries page content.

1 string reference to 'Countries::display'
visitors_geoip.routing.yml in ./visitors_geoip.routing.yml
visitors_geoip.routing.yml

File

src/Controller/Report/Countries.php, line 63
Contains Drupal\visitors\Controller\Report\Countries.

Class

Countries

Namespace

Drupal\visitors\Controller\Report

Code

public function display() {
  $form = $this->formBuilder
    ->getForm('Drupal\\visitors\\Form\\DateFilter');
  $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',
    ),
  );
}