You are here

public function PathPluginBase::getUrlInfo in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/views/src/Plugin/views/display/PathPluginBase.php \Drupal\views\Plugin\views\display\PathPluginBase::getUrlInfo()

Generates a URL to this display.

Return value

\Drupal\Core\Url A URL object for the display.

Overrides DisplayRouterInterface::getUrlInfo

File

core/modules/views/src/Plugin/views/display/PathPluginBase.php, line 537

Class

PathPluginBase
The base display plugin for path/callbacks. This is used for pages and feeds.

Namespace

Drupal\views\Plugin\views\display

Code

public function getUrlInfo() {
  return Url::fromRoute($this
    ->getRouteName());
}