From 1d4b30423a7d2fac61f3ba88d200fc10567df47e Mon Sep 17 00:00:00 2001 From: Kristen Pol Date: Fri, 31 Jan 2025 12:24:15 -0800 Subject: [PATCH 1/2] Fix lint error. --- quant.module | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/quant.module b/quant.module index f9f14c9..111fdbe 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 + ]) + ); } } From f661292c95adf62d60dddaa589d4917bde3a2e8d Mon Sep 17 00:00:00 2001 From: Kristen Pol Date: Fri, 31 Jan 2025 12:25:46 -0800 Subject: [PATCH 2/2] Linting. --- quant.module | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/quant.module b/quant.module index 111fdbe..f827a82 100644 --- a/quant.module +++ b/quant.module @@ -514,7 +514,7 @@ function quant_preprocess_views_view(array &$variables) { \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 + '@view_display' => $view->current_display, ]) ); }