You are here

protected function Referers::_getHeader in Visitors 8.2

Returns a table header configuration.

Return value

array A render array representing the table header info.

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

File

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

Class

Referers

Namespace

Drupal\visitors\Controller\Report

Code

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