function PathPluginBase::validate

Same name in other branches
  1. 8.9.x core/modules/views/src/Plugin/views/display/PathPluginBase.php \Drupal\views\Plugin\views\display\PathPluginBase::validate()
  2. 10 core/modules/views/src/Plugin/views/display/PathPluginBase.php \Drupal\views\Plugin\views\display\PathPluginBase::validate()
  3. 11.x core/modules/views/src/Plugin/views/display/PathPluginBase.php \Drupal\views\Plugin\views\display\PathPluginBase::validate()

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 528

Class

PathPluginBase
The base display plugin for path/callbacks. This is used for pages and feeds.

Namespace

Drupal\views\Plugin\views\display

Code

public function validate() {
    $errors = parent::validate();
    $errors += $this->validatePath($this->getOption('path'));
    return $errors;
}

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