You are here

public function PathPluginBase::validate in Zircon Profile 8.0

Same name and namespace in other branches
  1. 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 487
Contains \Drupal\views\Plugin\views\display\PathPluginBase.

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;
}