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

AnnotationBase

Provides a base class for classed annotations. Hierarchy class \Drupal\Component\Annotation\AnnotationBase implements AnnotationInterface File core/lib/Drupal/Component/Annotation/AnnotationBase.php, line 8 Namespace Drupal\Component\Annotation Members Name Modifiers Type Description AnnotationBase::$class protected property The class used for this annotated class. AnnotationBase::$id public property The annotated class ID. AnnotationBase::$provider protected

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

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

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

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

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::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

Analyze

Displays analysis information for a view. Hierarchy class \Drupal\Core\Form\FormBase implements ContainerInjectionInterface, FormInterface uses DependencySerializationTrait, LoggerChannelTrait, LinkGeneratorTrait, RedirectDestinationTrait, UrlGeneratorTrait, StringTranslationTraitclass \Drupal\views_ui\Form\Ajax\ViewsFormBase implements ViewsFormInterfaceclass \Drupal\views_ui\Form\Ajax\Analyze File core/modules/views_ui/src/Form/Ajax/Analyze.php, line 11 Namespace Drupal\views_ui\Form