You are here

protected function VisitStatistic::getChartColumns in Dashboards with Layout Builder 8

Same name and namespace in other branches
  1. 2.0.x modules/dashboards_matomo/src/Plugin/Dashboard/VisitStatistic.php \Drupal\dashboards_matomo\Plugin\Dashboard\VisitStatistic::getChartColumns()

Get columns for query.

Return value

array Return columns.

1 call to VisitStatistic::getChartColumns()
VisitStatistic::buildSettingsForm in modules/dashboards_matomo/src/Plugin/Dashboard/VisitStatistic.php
Build render array.

File

modules/dashboards_matomo/src/Plugin/Dashboard/VisitStatistic.php, line 25

Class

VisitStatistic
Show account info.

Namespace

Drupal\dashboards_matomo\Plugin\Dashboard

Code

protected function getChartColumns() {
  return [
    'nb_visits' => $this
      ->t('Visits'),
    'avg_time_on_site' => $this
      ->t('Average time on site'),
    'nb_uniq_visitors' => $this
      ->t('Unique visitors'),
    'nb_actions' => $this
      ->t('Actions'),
    'sum_visit_length' => $this
      ->t('Visit length summary.'),
    'max_actions' => $this
      ->t('Max actions.'),
    'nb_users' => $this
      ->t('Users'),
  ];
}