function EntityRouteProviderInterface::getRoutes
Same name in other branches
- 9 core/lib/Drupal/Core/Entity/Routing/EntityRouteProviderInterface.php \Drupal\Core\Entity\Routing\EntityRouteProviderInterface::getRoutes()
- 8.9.x core/lib/Drupal/Core/Entity/Routing/EntityRouteProviderInterface.php \Drupal\Core\Entity\Routing\EntityRouteProviderInterface::getRoutes()
- 10 core/lib/Drupal/Core/Entity/Routing/EntityRouteProviderInterface.php \Drupal\Core\Entity\Routing\EntityRouteProviderInterface::getRoutes()
Provides routes for entities.
Parameters
\Drupal\Core\Entity\EntityTypeInterface $entity_type: The entity type
Return value
\Symfony\Component\Routing\RouteCollection|\Symfony\Component\Routing\Route[] Returns a route collection or an array of routes keyed by name, like route_callbacks inside 'routing.yml' files.
7 methods override EntityRouteProviderInterface::getRoutes()
- DefaultHtmlRouteProvider::getRoutes in core/
lib/ Drupal/ Core/ Entity/ Routing/ DefaultHtmlRouteProvider.php - Provides routes for entities.
- EntityModerationRouteProvider::getRoutes in core/
modules/ content_moderation/ src/ Entity/ Routing/ EntityModerationRouteProvider.php - EntityPermissionsRouteProvider::getRoutes in core/
modules/ user/ src/ Entity/ EntityPermissionsRouteProvider.php - Provides routes for entities.
- FileRouteProvider::getRoutes in core/
modules/ file/ src/ Entity/ FileRouteProvider.php - NodeRouteProvider::getRoutes in core/
modules/ node/ src/ Entity/ NodeRouteProvider.php
File
-
core/
lib/ Drupal/ Core/ Entity/ Routing/ EntityRouteProviderInterface.php, line 22
Class
- EntityRouteProviderInterface
- Allows entity types to provide routes.
Namespace
Drupal\Core\Entity\RoutingCode
public function getRoutes(EntityTypeInterface $entity_type);
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.