You are here

public function views_content_plugin_display_ctools_context::get_path in Chaos Tool Suite (ctools) 7

Return the base path to use for this display.

This can be overridden for displays that do strange things with the path.

Overrides views_plugin_display::get_path

File

views_content/plugins/views/views_content_plugin_display_ctools_context.inc, line 274
Contains the block display plugin.

Class

views_content_plugin_display_ctools_context
The plugin that handles a block.

Code

public function get_path() {
  if ($this
    ->get_option('link_display') == 'custom_url' && ($override_path = $this
    ->get_option('link_url'))) {
    return $override_path;
  }
  if ($this
    ->get_option('inherit_panels_path')) {
    return $_GET['q'];
  }
  return parent::get_path();
}