Skip to content

Commit

Permalink
Fix lint error.
Browse files Browse the repository at this point in the history
  • Loading branch information
kepol committed Jan 31, 2025
1 parent 4a63502 commit 1d4b304
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion quant.module
Original file line number Diff line number Diff line change
Expand Up @@ -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.<br/> <a href="https://docs.quantcdn.io/integrations/drupal">See the documentation for your options</a>.', ['@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.<br/> <a href="https://docs.quantcdn.io/integrations/drupal">See the documentation for your options</a>.',
[
'@view_id' => $view->id(),
'@view_display' => $view->current_display
])
);
}

}

0 comments on commit 1d4b304

Please sign in to comment.