Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. Analyzer.php

function 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;
}
RSS feed
Powered by Drupal