You are here

function views_plugin_display::get_path in Views (for Drupal 7) 6.3

Same name and namespace in other branches
  1. 6.2 plugins/views_plugin_display.inc \views_plugin_display::get_path()
  2. 7.3 plugins/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()
views_plugin_display::render_more_link in plugins/views_plugin_display.inc
Render the 'more' link
views_plugin_display_feed::attach_to in plugins/views_plugin_display_feed.inc
Attach to another view.

File

plugins/views_plugin_display.inc, line 705
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();
  }
}