function DisplayRouterInterface::collectRoutes
Same name in other branches
- 8.9.x core/modules/views/src/Plugin/views/display/DisplayRouterInterface.php \Drupal\views\Plugin\views\display\DisplayRouterInterface::collectRoutes()
- 10 core/modules/views/src/Plugin/views/display/DisplayRouterInterface.php \Drupal\views\Plugin\views\display\DisplayRouterInterface::collectRoutes()
- 11.x core/modules/views/src/Plugin/views/display/DisplayRouterInterface.php \Drupal\views\Plugin\views\display\DisplayRouterInterface::collectRoutes()
Adds the route entry of a view to the collection.
Parameters
\Symfony\Component\Routing\RouteCollection $collection: A collection of routes that should be registered for this resource.
1 method overrides DisplayRouterInterface::collectRoutes()
- PathPluginBase::collectRoutes in core/
modules/ views/ src/ Plugin/ views/ display/ PathPluginBase.php - Adds the route entry of a view to the collection.
File
-
core/
modules/ views/ src/ Plugin/ views/ display/ DisplayRouterInterface.php, line 21
Class
- DisplayRouterInterface
- Defines an interface for displays that can collect routes.
Namespace
Drupal\views\Plugin\views\displayCode
public function collectRoutes(RouteCollection $collection);
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.