You are here

protected function Hosts::_getHeader in Visitors 8.2

Returns a table header configuration.

Return value

array A render array representing the table header info.

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

File

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

Class

Hosts

Namespace

Drupal\visitors\Controller\Report

Code

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