public function PathPluginBase::getPath

Return the base path to use for this display.

This can be overridden for displays that do strange things with the path.

Overrides DisplayPluginBase::getPath

1 call to PathPluginBase::getPath()
Feed::attachTo in drupal/core/modules/views/lib/Drupal/views/Plugin/views/display/Feed.php
Overrides \Drupal\views\Plugin\views\display\DisplayPluginBase::attachTo().

File

drupal/core/modules/views/lib/Drupal/views/Plugin/views/display/PathPluginBase.php, line 32
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 getPath() {
  $bits = explode('/', $this
    ->getOption('path'));
  if ($this
    ->isDefaultTabPath()) {
    array_pop($bits);
  }
  return implode('/', $bits);
}