Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. DisplayRouterInterface.php

function DisplayRouterInterface::getRouteName

Returns the route name for the display.

The default route name for a display is views.$view_id.$display_id. Some displays may override existing routes; in these cases, the route that is overridden is returned instead.

Return value

string The name of the route

See also

\Drupal\views\Plugin\views\display\DisplayRouterInterface::alterRoutes()

\Drupal\views\Plugin\views\display\DisplayRouterInterface::getAlteredRouteNames()

1 method overrides DisplayRouterInterface::getRouteName()
PathPluginBase::getRouteName in core/modules/views/src/Plugin/views/display/PathPluginBase.php
Returns the route name for the display.

File

core/modules/views/src/Plugin/views/display/DisplayRouterInterface.php, line 58

Class

DisplayRouterInterface
Defines an interface for displays that can collect routes.

Namespace

Drupal\views\Plugin\views\display

Code

public function getRouteName();

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal