Updated to Drupal 8.5. Core Media not yet in use.
[yaffs-website] / vendor / chi-teck / drupal-code-generator / templates / d8 / hook / views_analyze.twig
1 /**
2  * Implements hook_views_analyze().
3  */
4 function {{ machine_name }}_views_analyze(Drupal\views\ViewExecutable $view) {
5   $messages = [];
6
7   if ($view->display_handler->options['pager']['type'] == 'none') {
8     $messages[] = Drupal\views\Analyzer::formatMessage(t('This view has no pager. This could cause performance issues when the view contains many items.'), 'warning');
9   }
10
11   return $messages;
12 }