Check to see if the display has some need to link to another display.
For the most part, displays without a path will use a link display. However,
sometimes displays that have a path might also need to link to another display.
This is true for feeds.
File
- drupal/core/modules/views/lib/Drupal/views/Plugin/views/display/DisplayPluginBase.php, line 670
- Contains Drupal\views\Plugin\views\display\DisplayPluginBase.
Class
- DisplayPluginBase
- The default display plugin handler. Display plugins handle options and
basic mechanisms for different output methods.
Namespace
Drupal\views\Plugin\views\display
Code
public function usesLinkDisplay() {
return !$this
->hasPath();
}