You are here

public function GoogleAnalyticsQuery::alter in Google Analytics Reports 8.3

Let modules modify the query just prior to finalizing it.

Parameters

view $view: The view which is executed.

Overrides QueryPluginBase::alter

File

src/Plugin/views/query/GoogleAnalyticsQuery.php, line 318

Class

GoogleAnalyticsQuery
Defines a Views query class for Google Analytics Reports API.

Namespace

Drupal\google_analytics_reports\Plugin\views\query

Code

public function alter(ViewExecutable $view) {
  $this->moduleHandler
    ->invokeAll('views_query_alter', [
    $view,
    $this,
  ]);
}