You are here

interface EntityRouteProviderInterface in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/lib/Drupal/Core/Entity/Routing/EntityRouteProviderInterface.php \Drupal\Core\Entity\Routing\EntityRouteProviderInterface

Allows entity types to provide routes.

Hierarchy

Expanded class hierarchy of EntityRouteProviderInterface

All classes that implement EntityRouteProviderInterface

2 files declare their use of EntityRouteProviderInterface
NodeRouteProvider.php in core/modules/node/src/Entity/NodeRouteProvider.php
Contains \Drupal\node\Entity\NodeRouteProvider.
UserRouteProvider.php in core/modules/user/src/Entity/UserRouteProvider.php
Contains \Drupal\user\Entity\UserRouteProvider.

File

core/lib/Drupal/Core/Entity/Routing/EntityRouteProviderInterface.php, line 15
Contains \Drupal\Core\Entity\Routing\EntityRouteProviderInterface.

Namespace

Drupal\Core\Entity\Routing
View source
interface EntityRouteProviderInterface {

  /**
   * Provides routes for entities.
   *
   * @param \Drupal\Core\Entity\EntityTypeInterface $entity_type
   *   The entity type
   *
   * @return \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.
   */
  public function getRoutes(EntityTypeInterface $entity_type);

}

Members

Namesort descending Modifiers Type Description Overrides
EntityRouteProviderInterface::getRoutes public function Provides routes for entities. 3