You are here

public function GoogleAnalyticsStandard::query in Google Analytics Reports 8.3

Called to add the field to a query.

Overrides FieldPluginBase::query

File

src/Plugin/views/field/GoogleAnalyticsStandard.php, line 41

Class

GoogleAnalyticsStandard
Provides base field functionality for Google Analytics fields.

Namespace

Drupal\google_analytics_reports\Plugin\views\field

Code

public function query() {
  parent::query();
  if ($this->isCustom) {
    $this->realField = google_analytics_reports_custom_to_variable_field($this->realField, $this->options['custom_field_number']);
  }
}