Updated Drupal to 8.6. This goes with the following updates because it's possible...
[yaffs-website] / vendor / chi-teck / drupal-code-generator / templates / d8 / hook / views_post_execute.twig
index 2b612677c2b7cc190ad63a98806c4db6f7e2ea37..dfad5f44ce610c38bbc5a6b3b8e5eb72ae81f73f 100644 (file)
@@ -7,6 +7,6 @@ function {{ machine_name }}_views_post_execute(ViewExecutable $view) {
   // (This action could be performed later in the execution process, but not
   // earlier.)
   if ($view->total_rows > 100) {
-    drupal_set_message(t('You have more than 100 hits. Use the filter settings to narrow down your list.'));
+    \Drupal::messenger()->addStatus(t('You have more than 100 hits. Use the filter settings to narrow down your list.'));
   }
 }