public function Analyzer::getMessages

Analyzes a review and return the results.

Return value

array An array of analyze results organized into arrays keyed by 'ok', 'warning' and 'error'.

File

drupal/core/modules/views/lib/Drupal/views/Analyzer.php, line 58
Definition of Drupal\views\Analyzer.

Class

Analyzer
This tool is a small plugin manager to perform analysis on a view and report results to the user. This tool is meant to let modules that provide data to Views also help users properly use that data by detecting invalid configurations. Views itself…

Namespace

Drupal\views

Code

public function getMessages() {
  $this->view
    ->initDisplay();
  $messages = module_invoke_all('views_analyze', $this->view);
  return $messages;
}