public function PathPluginBase::validate in Drupal 8
Same name and namespace in other branches
- 9 core/modules/views/src/Plugin/views/display/PathPluginBase.php \Drupal\views\Plugin\views\display\PathPluginBase::validate()
 - 10 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 527  
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;
}