protected function RecentHits::_getHeader in Visitors 8.2
Returns a table header configuration.
Return value
array A render array representing the table header info.
1 call to RecentHits::_getHeader()
- RecentHits::display in src/
Controller/ Report/ RecentHits.php - Returns a recent hits page.
File
- src/
Controller/ Report/ RecentHits.php, line 84 - Contains Drupal\visitors\Controller\Report\RecentHits.
Class
Namespace
Drupal\visitors\Controller\ReportCode
protected function _getHeader() {
return array(
'#' => array(
'data' => t('#'),
),
'visitors_id' => array(
'data' => t('ID'),
'field' => 'visitors_id',
'specifier' => 'visitors_id',
'class' => array(
RESPONSIVE_PRIORITY_LOW,
),
'sort' => 'desc',
),
'visitors_date_time' => array(
'data' => t('Date'),
'field' => 'visitors_date_time',
'specifier' => 'visitors_date_time',
'class' => array(
RESPONSIVE_PRIORITY_LOW,
),
),
'visitors_url' => array(
'data' => t('URL'),
'field' => 'visitors_url',
'specifier' => 'visitors_url',
'class' => array(
RESPONSIVE_PRIORITY_LOW,
),
),
'u.name' => array(
'data' => t('User'),
'field' => 'u.name',
'specifier' => 'u.name',
'class' => array(
RESPONSIVE_PRIORITY_LOW,
),
),
'' => array(
'data' => t('Details'),
),
);
}