public function GoogleAnalyticsWizard::getAvailableSorts in Google Analytics Reports 8.3
Gets the availableSorts property.
Return value
array
Overrides WizardPluginBase::getAvailableSorts
File
- src/
Plugin/ views/ wizard/ GoogleAnalyticsWizard.php, line 21
Class
- GoogleAnalyticsWizard
- Tests creating Google Analytics views with the wizard.
Namespace
Drupal\google_analytics_reports\Plugin\views\wizardCode
public function getAvailableSorts() {
return [
'sessions:DESC' => $this
->t('Sessions'),
'users:DESC' => $this
->t('Users'),
'pageviews:DESC' => $this
->t('Pageviews'),
'date:DESC' => $this
->t('Date'),
];
}