You are here

protected function Countries::_getHeader in Visitors 8.2

Returns a table header configuration.

Return value

array A render array representing the table header info.

1 call to Countries::_getHeader()
Countries::display in src/Controller/Report/Countries.php
Returns a countries page.

File

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

Class

Countries

Namespace

Drupal\visitors\Controller\Report

Code

protected function _getHeader() {
  return array(
    '#' => array(
      'data' => t('#'),
    ),
    'visitors_country_name' => array(
      'data' => t('URL'),
      'field' => 'visitors_country_name',
      'specifier' => 'visitors_country_name',
      'class' => array(
        RESPONSIVE_PRIORITY_LOW,
      ),
    ),
    'count' => array(
      'data' => t('Count'),
      'field' => 'count',
      'specifier' => 'count',
      'class' => array(
        RESPONSIVE_PRIORITY_LOW,
      ),
      'sort' => 'desc',
    ),
  );
}