public function GoogleAnalyticsArgument::query in Google Analytics Reports 8.3
Set up the query for this argument.
The argument sent may be found at $this->argument.
Overrides ArgumentPluginBase::query
File
- src/
Plugin/ views/ argument/ GoogleAnalyticsArgument.php, line 79
Class
- GoogleAnalyticsArgument
- Provides base argument functionality for Google Analytics fields.
Namespace
Drupal\google_analytics_reports\Plugin\views\argumentCode
public function query($group_by = FALSE) {
if ($this->isCustom) {
$this->realField = google_analytics_reports_custom_to_variable_field($this->realField, $this->options['custom_field_number']);
}
$this->operator = '==';
$this->query
->addWhere(1, $this->realField, $this->argument, $this->operator);
}