You are here

public function PathPluginBase::getUrlInfo in Zircon Profile 8

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

Generates an 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 498
Contains \Drupal\views\Plugin\views\display\PathPluginBase.

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());
}