diff --git a/core/modules/views/src/Plugin/views/display/DisplayPluginInterface.php b/core/modules/views/src/Plugin/views/display/DisplayPluginInterface.php index fedb662..c8bc31c 100644 --- a/core/modules/views/src/Plugin/views/display/DisplayPluginInterface.php +++ b/core/modules/views/src/Plugin/views/display/DisplayPluginInterface.php @@ -213,8 +213,21 @@ public function getLinkDisplay(); */ public function getPath(); + /** + * Points to the display which can be linked by this display. + * + * If $this display has route information it is itself, otherwise it is the + * configured linked display. + * + * @return static|null + */ public function getRoutedDisplay(); + /** + * Returns a URL to $this display or its configured linked display + * + * @return \Drupal\Core\Url|null + */ public function getUrl(); /** diff --git a/core/modules/views/src/ViewExecutable.php b/core/modules/views/src/ViewExecutable.php index d828594..5b5f516 100644 --- a/core/modules/views/src/ViewExecutable.php +++ b/core/modules/views/src/ViewExecutable.php @@ -1704,6 +1704,16 @@ public function buildTitle() { $this->_buildArguments(); } + /** + * Determines whether you can link to the view. + * + * @param array $args + * (optional) The arguments. + * @param string $display_id + * (optional) The display ID. + * + * @return bool + */ public function hasUrl($args = NULL, $display_id = NULL) { if (!empty($this->override_url)) { return TRUE;