You are here

public function PathPluginBase::validate in Drupal 10

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()
  2. 9 core/modules/views/src/Plugin/views/display/PathPluginBase.php \Drupal\views\Plugin\views\display\PathPluginBase::validate()

Make sure the display and all associated handlers are valid.

Return value

Empty array if the display is valid; an array of error strings if it is not.

Overrides DisplayPluginInterface::validate

1 call to PathPluginBase::validate()
Page::validate in core/modules/views/src/Plugin/views/display/Page.php
Make sure the display and all associated handlers are valid.
1 method overrides PathPluginBase::validate()
Page::validate in core/modules/views/src/Plugin/views/display/Page.php
Make sure the display and all associated handlers are valid.

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