Same name and namespace in other branches
  1. 8.9.x core/modules/views/src/Analyzer.php \Drupal\views\Analyzer::getMessages()
  2. 9 core/modules/views/src/Analyzer.php \Drupal\views\Analyzer::getMessages()

Analyzes a review and return the results.

Parameters

\Drupal\views\ViewExecutable $view: The view to analyze.

Return value

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

File

core/modules/views/src/Analyzer.php, line 46

Class

Analyzer
View analyzer plugin manager.

Namespace

Drupal\views

Code

public function getMessages(ViewExecutable $view) {
  $view
    ->initDisplay();
  $messages = $this->moduleHandler
    ->invokeAll('views_analyze', [
    $view,
  ]);
  return $messages;
}