function Analyzer::__construct

Same name in other branches
  1. 9 core/modules/views/src/Analyzer.php \Drupal\views\Analyzer::__construct()
  2. 10 core/modules/views/src/Analyzer.php \Drupal\views\Analyzer::__construct()
  3. 11.x core/modules/views/src/Analyzer.php \Drupal\views\Analyzer::__construct()

Constructs an Analyzer object.

Parameters

\Drupal\Core\Extension\ModuleHandlerInterface $module_handler: The module handler that invokes the 'views_analyze' hook.

File

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

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 __construct(ModuleHandlerInterface $module_handler) {
    $this->moduleHandler = $module_handler;
}

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