public function DisplayPluginBase::getPath

Return the base path to use for this display.

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

2 calls to DisplayPluginBase::getPath()
DisplayPluginBase::renderMoreLink in drupal/core/modules/views/lib/Drupal/views/Plugin/views/display/DisplayPluginBase.php
Render the 'more' link
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/DisplayPluginBase.php, line 708
Contains Drupal\views\Plugin\views\display\DisplayPluginBase.

Class

DisplayPluginBase
The default display plugin handler. Display plugins handle options and basic mechanisms for different output methods.

Namespace

Drupal\views\Plugin\views\display

Code

public function getPath() {
  if ($this
    ->hasPath()) {
    return $this
      ->getOption('path');
  }
  $display_id = $this
    ->getLinkDisplay();
  if ($display_id && !empty($this->view->displayHandlers[$display_id]) && is_object($this->view->displayHandlers[$display_id])) {
    return $this->view->displayHandlers[$display_id]
      ->getPath();
  }
}