You are here

function workspace_views_query_alter in Workspace 8.2

Implements hook_views_query_alter().

File

./workspace.module, line 115
Provides full-site preview functionality for content staging.

Code

function workspace_views_query_alter(ViewExecutable $view, QueryPluginBase $query) {
  return \Drupal::service('class_resolver')
    ->getInstanceFromDefinition(ViewsQueryAlter::class)
    ->alterQuery($view, $query);
}