You are here

protected function TopPages::_getHeader in Visitors 8.2

Returns a table header configuration.

Return value

array A render array representing the table header info.

1 call to TopPages::_getHeader()
TopPages::display in src/Controller/Report/TopPages.php
Returns a top pages page.

File

src/Controller/Report/TopPages.php, line 82
Contains Drupal\visitors\Controller\Report\TopPages.

Class

TopPages

Namespace

Drupal\visitors\Controller\Report

Code

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