public function UserActivity::display in Visitors 8.2
Returns a user activity page.
Return value
array A render array representing the user activity page content.
1 string reference to 'UserActivity::display'
File
- src/
Controller/ Report/ UserActivity.php, line 61 - Contains Drupal\visitors\Controller\Report\UserActivity.
Class
Namespace
Drupal\visitors\Controller\ReportCode
public function display() {
$form = $this->formBuilder
->getForm('Drupal\\visitors\\Form\\DateFilter');
$header = $this
->_getHeader();
return array(
'visitors_date_filter_form' => $form,
'visitors_table' => array(
'#type' => 'table',
'#header' => $header,
'#rows' => $this
->_getData($header),
),
'visitors_pager' => array(
'#type' => 'pager',
),
);
}