1 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.

File

core/modules/views/plugins/views_plugin_display.inc, line 770
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();
  }

  if ($this->get_option('link_display') == 'custom_url' && $link_url = $this->get_option('link_url')) {
    return $link_url;
  }
}