function views_test_data_views_analyze

Implements hook_views_analyze().

File

core/modules/views/tests/modules/views_test_data/views_test_data.views.inc, line 39

Code

function views_test_data_views_analyze(ViewExecutable $view) {
  \Drupal::state()->set('views_hook_test_views_analyze', TRUE);
  $ret = [];
  $ret[] = Analyzer::formatMessage(t('Test ok message'), 'ok');
  $ret[] = Analyzer::formatMessage(t('Test warning message'), 'warning');
  $ret[] = Analyzer::formatMessage(t('Test error message'), 'error');
  return $ret;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.