Skip to content

Commit 7c9f6d4

Browse files
authored
Merge pull request #245 from quantcdn/feature/warning-text-fix
Fix lint error.
2 parents 4a63502 + f661292 commit 7c9f6d4

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

quant.module

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -511,7 +511,12 @@ function quant_preprocess_views_view(array &$variables) {
511511

512512
// If the view has exposed filters, add a warning for admins.
513513
if ($view->exposed_data && \Drupal::currentUser()->hasRole('administrator')) {
514-
\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]));
514+
\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>.',
515+
[
516+
'@view_id' => $view->id(),
517+
'@view_display' => $view->current_display,
518+
])
519+
);
515520
}
516521

517522
}

0 commit comments

Comments
 (0)