public function PathPluginBase::validate in Drupal 9
Same name and namespace in other branches
- 8 core/modules/views/src/Plugin/views/display/PathPluginBase.php \Drupal\views\Plugin\views\display\PathPluginBase::validate()
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.
Overrides DisplayPluginBase::validate
1 call to PathPluginBase::validate()
- Page::validate in core/
modules/ views/ src/ Plugin/ views/ display/ Page.php - Validate that the plugin is correct and can be saved.
1 method overrides PathPluginBase::validate()
- Page::validate in core/
modules/ views/ src/ Plugin/ views/ display/ Page.php - Validate that the plugin is correct and can be saved.
File
- core/
modules/ views/ src/ Plugin/ views/ display/ PathPluginBase.php, line 526
Class
- PathPluginBase
- The base display plugin for path/callbacks. This is used for pages and feeds.
Namespace
Drupal\views\Plugin\views\displayCode
public function validate() {
$errors = parent::validate();
$errors += $this
->validatePath($this
->getOption('path'));
return $errors;
}