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::get_path()
  2. 6.2 plugins/ \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/
Render the 'more' link.
views_plugin_display_feed::attach_to in plugins/
Attach to another view.


plugins/, line 870
Definition of views_plugin_display.


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


public function get_path() {
  if ($this
    ->has_path()) {
    return $this
  if ($this
    ->get_option('link_display') == 'custom_url' && ($link_url = $this
    ->get_option('link_url'))) {
    return $link_url;
  $display_id = $this
  if ($display_id && !empty($this->view->display[$display_id]) && is_object($this->view->display[$display_id]->handler)) {
    return $this->view->display[$display_id]->handler