Check to see which display to use when creating links within a view using this display.
public function getLinkDisplay() {
$display_id = $this
->getOption('link_display');
// If unknown, pick the first one.
if (empty($display_id) || !$this->view->displayHandlers
->has($display_id)) {
foreach ($this->view->displayHandlers as $display_id => $display) {
if (!empty($display) && $display
->hasPath()) {
return $display_id;
}
}
}
else {
return $display_id;
}
// fall-through returns NULL
}