You are here

public function PathPluginBase::getAlteredRouteNames 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::getAlteredRouteNames()

Returns the list of routes overridden by Views.

Return value

string[] An array of overridden route names. The keys are in the form view_id.display_id and the values are the route names.

Overrides DisplayRouterInterface::getAlteredRouteNames

See also

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

1 call to PathPluginBase::getAlteredRouteNames()
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/PathPluginBase.php, line 558

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 getAlteredRouteNames() {
  return $this->state
    ->get('views.view_route_names', []);
}