public function Analyzer::getMessages in Zircon Profile 8
Same name and namespace in other branches
- 8.0 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 50 - Contains \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\viewsCode
public function getMessages(ViewExecutable $view) {
$view
->initDisplay();
$messages = $this->moduleHandler
->invokeAll('views_analyze', array(
$view,
));
return $messages;
}