You are here

class RouteObject in Zircon Profile 8.0

Same name in this branch
  1. 8.0 vendor/symfony-cmf/routing/Tests/Routing/ProviderBasedGeneratorTest.php \Symfony\Cmf\Component\Routing\Tests\Routing\RouteObject
  2. 8.0 vendor/symfony-cmf/routing/Tests/Enhancer/RouteObject.php \Symfony\Cmf\Component\Routing\Tests\Enhancer\RouteObject
Same name and namespace in other branches
  1. 8 vendor/symfony-cmf/routing/Tests/Routing/ProviderBasedGeneratorTest.php \Symfony\Cmf\Component\Routing\Tests\Routing\RouteObject

Hierarchy

Expanded class hierarchy of RouteObject

File

vendor/symfony-cmf/routing/Tests/Routing/ProviderBasedGeneratorTest.php, line 138

Namespace

Symfony\Cmf\Component\Routing\Tests\Routing
View source
class RouteObject implements RouteObjectInterface {
  public function getRouteKey() {
    return '/some/key';
  }
  public function getContent() {
    return null;
  }

}

Members

Namesort descending Modifiers Type Description Overrides
RouteObject::getContent public function Get the content document this route entry stands for. If non-null, the ControllerClassMapper uses it to identify a controller and the content is passed to the controller. Overrides RouteObjectInterface::getContent
RouteObject::getRouteKey public function Get the route key. Overrides RouteObjectInterface::getRouteKey
RouteObjectInterface::CONTENT_OBJECT constant Field name for the content of the current route, if any.
RouteObjectInterface::CONTROLLER_NAME constant Field name for an explicit controller name to be used with this route
RouteObjectInterface::ROUTE_NAME constant Field name that will hold the route name that was matched.
RouteObjectInterface::ROUTE_OBJECT constant Field name of the route object that was matched.
RouteObjectInterface::TEMPLATE_NAME constant Field name for an explicit template to be used with this route. i.e. CmfContentBundle:StaticContent:index.html.twig