diff --git a/quant.module b/quant.module index f9f14c9..f827a82 100644 --- a/quant.module +++ b/quant.module @@ -511,7 +511,12 @@ function quant_preprocess_views_view(array &$variables) { // If the view has exposed filters, add a warning for admins. if ($view->exposed_data && \Drupal::currentUser()->hasRole('administrator')) { - \Drupal::messenger()->addWarning(t('The view (@view_id - @view_display) has exposed filters which need special handling for a static website.
See the documentation for your options.', ['@view_id' => $view->id(), '@view_display' => $view->current_display])); + \Drupal::messenger()->addWarning(t('The view (@view_id - @view_display) has exposed filters which need special handling for a static website.
See the documentation for your options.', + [ + '@view_id' => $view->id(), + '@view_display' => $view->current_display, + ]) + ); } }