function views_plugin_display::get_link_display
Same name in other branches
- 6.x-3.x plugins/views_plugin_display.inc \views_plugin_display::get_link_display()
Check to see which display to use when creating links.
2 calls to views_plugin_display::get_link_display()
- views_plugin_display::get_path in plugins/
views_plugin_display.inc - Return the base path to use for this display.
- views_plugin_display::options_summary in plugins/
views_plugin_display.inc - Provide the default summary for options in the views UI.
File
-
plugins/
views_plugin_display.inc, line 850
Class
- views_plugin_display
- The default display plugin handler. Display plugins handle options and basic mechanisms for different output methods.
Code
public function get_link_display() {
$display_id = $this->get_option('link_display');
// If unknown, pick the first one.
if (empty($display_id) || empty($this->view->display[$display_id])) {
foreach ($this->view->display as $display_id => $display) {
if (!empty($display->handler) && $display->handler
->has_path()) {
return $display_id;
}
}
}
else {
return $display_id;
}
// Fall-through returns NULL.
}