function ViewsPluginInterface::validate

Same name and namespace in other branches
  1. 9 core/modules/views/src/Plugin/views/ViewsPluginInterface.php \Drupal\views\Plugin\views\ViewsPluginInterface::validate()
  2. 8.9.x core/modules/views/src/Plugin/views/ViewsPluginInterface.php \Drupal\views\Plugin\views\ViewsPluginInterface::validate()
  3. 11.x core/modules/views/src/Plugin/views/ViewsPluginInterface.php \Drupal\views\Plugin\views\ViewsPluginInterface::validate()

Validate that the plugin is correct and can be saved.

Return value

array|null An array of error strings to tell the user what is wrong with this plugin.

1 method overrides ViewsPluginInterface::validate()
PluginBase::validate in core/modules/views/src/Plugin/views/PluginBase.php
Validate that the plugin is correct and can be saved.

File

core/modules/views/src/Plugin/views/ViewsPluginInterface.php, line 153

Class

ViewsPluginInterface
Provides an interface for all views plugins.

Namespace

Drupal\views\Plugin\views

Code

public function validate();

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