--- /dev/null
+/**
+ * Implements hook_views_analyze().
+ */
+function {{ machine_name }}_views_analyze(Drupal\views\ViewExecutable $view) {
+ $messages = [];
+
+ if ($view->display_handler->options['pager']['type'] == 'none') {
+ $messages[] = Drupal\views\Analyzer::formatMessage(t('This view has no pager. This could cause performance issues when the view contains many items.'), 'warning');
+ }
+
+ return $messages;
+}