You are here

public function PluginBase::validate in Views (for Drupal 7) 8.3

Validate that the plugin is correct and can be saved.

Return value

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

2 calls to PluginBase::validate()
RssFields::validate in lib/Drupal/views/Plugin/views/row/RssFields.php
Validate that the plugin is correct and can be saved.
StylePluginBase::validate in lib/Drupal/views/Plugin/views/style/StylePluginBase.php
Validate that the plugin is correct and can be saved.
4 methods override PluginBase::validate()
DisplayPluginBase::validate in lib/Drupal/views/Plugin/views/display/DisplayPluginBase.php
Make sure the display and all associated handlers are valid.
HandlerBase::validate in lib/Drupal/views/Plugin/views/HandlerBase.php
Validates the handler against the complete View.
RssFields::validate in lib/Drupal/views/Plugin/views/row/RssFields.php
Validate that the plugin is correct and can be saved.
StylePluginBase::validate in lib/Drupal/views/Plugin/views/style/StylePluginBase.php
Validate that the plugin is correct and can be saved.

File

lib/Drupal/views/Plugin/views/PluginBase.php, line 202
Definition of Drupal\views\Plugin\views\PluginBase.

Class

PluginBase

Namespace

Drupal\views\Plugin\views

Code

public function validate() {
  return array();
}