function Analyzer::getMessages

Same name in other branches
  1. 9 core/modules/views/src/Analyzer.php \Drupal\views\Analyzer::getMessages()
  2. 8.9.x core/modules/views/src/Analyzer.php \Drupal\views\Analyzer::getMessages()
  3. 11.x 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;
}

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