You are here

public function views_plugin_display::get_path in Views (for Drupal 7) 7.3

Same name and namespace in other branches
  1. 6.3 plugins/views_plugin_display.inc \views_plugin_display::get_path()
  2. 6.2 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 870
Definition of views_plugin_display.

Class

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

Code

public function get_path() {
  if ($this
    ->has_path()) {
    return $this
      ->get_option('path');
  }
  if ($this
    ->get_option('link_display') == 'custom_url' && ($link_url = $this
    ->get_option('link_url'))) {
    return $link_url;
  }
  $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();
  }
}