public function PathPluginBase::getUrlInfo in Drupal 10
Same name and namespace in other branches
- 8 core/modules/views/src/Plugin/views/display/PathPluginBase.php \Drupal\views\Plugin\views\display\PathPluginBase::getUrlInfo()
- 9 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 539
Class
- PathPluginBase
- The base display plugin for path/callbacks. This is used for pages and feeds.
Namespace
Drupal\views\Plugin\views\displayCode
public function getUrlInfo() {
return Url::fromRoute($this
->getRouteName());
}