Analyzer::__construct

public Analyzer::__construct(ModuleHandlerInterface $module_handler) 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 dat

Analyzer::getMessages

public Analyzer::getMessages(ViewExecutable $view) 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 45 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

Analyzer::formatMessages

public Analyzer::formatMessages(array $messages) Formats the analyze result into a message string. This is based upon the format of drupal_set_message which uses separate boxes for "ok", "warning" and "error". File core/modules/views/src/Analyzer.php, line 58 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

Analyzer::formatMessage

static Analyzer::formatMessage($message, $type = 'error') Formats an analysis message. This tool should be called by any module responding to the analyze hook to properly format the message. It is usually used in the form: $ret[] = Analyzer::formatMessage(t('This is the message'), 'ok'); The 'ok' status should be used to provide information about things that are acceptable. In general analysis isn't interested in 'ok' messages, but instead the 'warning', which is a category for items that m

Analyzer::$moduleHandler

A module handler that invokes the 'views_analyze' hook. Type: \Drupal\Core\Extension\ModuleHandlerInterface File core/modules/views/src/Analyzer.php, line 22 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 protected $moduleHandler;

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 comes with only a small amount of analysis tools, but more could easily be added either by modules or as patches to Views itself. Hierarchy class \Drupal\views\Analyzer File core/modules/views/src/Analyzer.php, line 15 Namespace Drupal\views

Analyze::submitForm

public Analyze::submitForm(array &$form, FormStateInterface $form_state) Form submission handler. Parameters array $form: An associative array containing the structure of the form. \Drupal\Core\Form\FormStateInterface $form_state: The current state of the form. Overrides ViewsFormBase::submitForm File core/modules/views_ui/src/Form/Ajax/Analyze.php, line 54 Class Analyze Displays analysis information for a view. Namespace Drupal\views_ui\Form\Ajax Code public function submitForm(a

Analyze::getFormKey

public Analyze::getFormKey() Returns the key that represents this form. Return value string The form key used in the URL, e.g., the string 'add-handler' in 'admin/structure/views/%/add-handler/%/%/%'. Overrides ViewsFormInterface::getFormKey File core/modules/views_ui/src/Form/Ajax/Analyze.php, line 16 Class Analyze Displays analysis information for a view. Namespace Drupal\views_ui\Form\Ajax Code public function getFormKey() { return 'analyze'; }

Analyze::getFormId

public Analyze::getFormId() Returns a unique string identifying the form. Return value string The unique string identifying the form. Overrides FormInterface::getFormId File core/modules/views_ui/src/Form/Ajax/Analyze.php, line 23 Class Analyze Displays analysis information for a view. Namespace Drupal\views_ui\Form\Ajax Code public function getFormId() { return 'views_ui_analyze_view_form'; }

Analyze::buildForm

public Analyze::buildForm(array $form, FormStateInterface $form_state) Form constructor. Parameters array $form: An associative array containing the structure of the form. \Drupal\Core\Form\FormStateInterface $form_state: The current state of the form. Return value array The form structure. Overrides FormInterface::buildForm File core/modules/views_ui/src/Form/Ajax/Analyze.php, line 30 Class Analyze Displays analysis information for a view. Namespace Drupal\views_ui\Form\Ajax Code pu