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.

1 call to DisplayPluginBase::getPath()
DisplayPluginBase::renderMoreLink in drupal/core/modules/views/lib/Drupal/views/Plugin/views/display/DisplayPluginBase.php
Render the 'more' link
1 method overrides DisplayPluginBase::getPath()
PathPluginBase::getPath in drupal/core/modules/views/lib/Drupal/views/Plugin/views/display/PathPluginBase.php
Return the base path to use for this display.

File

drupal/core/modules/views/lib/Drupal/views/Plugin/views/display/DisplayPluginBase.php, line 747
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 && $this->view->displayHandlers
    ->has($display_id) && is_object($this->view->displayHandlers
    ->get($display_id))) {
    return $this->view->displayHandlers
      ->get($display_id)
      ->getPath();
  }
}