You are here

protected function Cities::_getHeader in Visitors 8.2

Returns a table header configuration.

Return value

array A render array representing the table header info.

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

File

src/Controller/Report/Cities.php, line 85
Contains Drupal\visitors\Controller\Report\Cities.

Class

Cities

Namespace

Drupal\visitors\Controller\Report

Code

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