function views_plugin_display::get_path

3.x views_plugin_display.inc views_plugin_display::get_path()
2.x views_plugin_display.inc views_plugin_display::get_path()

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 views_plugin_display::get_path()

File

plugins/views_plugin_display.inc, line 447
Contains the base display plugin.

Class

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

Code

function get_path() {
  if ($this->has_path()) {
    return $this->get_option('path');
  }

  $display_id = $this->get_link_display();
  if ($display_id && !empty($this->view->display[$display_id]) && is_object($this->view->display[$display_id]->handler)) {
    return $this->view->display[$display_id]->handler->get_path();
  }
}