interface RouteAwareInterface

Interface to be implemented by content that wants to be compatible with the DynamicRouter

Hierarchy

Expanded class hierarchy of RouteAwareInterface

All classes that implement RouteAwareInterface

1 file declares its use of RouteAwareInterface
ContentAwareGeneratorTest.php in drupal/core/vendor/symfony-cmf/routing/Symfony/Cmf/Component/Routing/Tests/Routing/ContentAwareGeneratorTest.php

File

drupal/core/vendor/symfony-cmf/routing/Symfony/Cmf/Component/Routing/RouteAwareInterface.php, line 9

Namespace

Symfony\Cmf\Component\Routing
View source
interface RouteAwareInterface {

  /**
   * Get the routes that point to this content.
   *
   * Note: For PHPCR ODM, as explained in RouteObjectInterface the route must use the
   * routeContent field to store the reference to the content so you can get the routes with
   * Referrers(referringDocument="Symfony\Cmf\Bundle\RoutingBundle\Document\Route", referencedBy="routeContent")
   *
   * @return \Symfony\Component\Routing\Route[] Route instances that point to this content
   */
  public function getRoutes();

}

Members

Namesort descending Modifiers Type Description Overrides
RouteAwareInterface::getRoutes public function Get the routes that point to this content. 1