class RouteObject

Hierarchy

Expanded class hierarchy of RouteObject

File

drupal/core/vendor/symfony-cmf/routing/Symfony/Cmf/Component/Routing/Tests/Routing/ProviderBasedGeneratorTest.php, line 103

Namespace

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

}

Members

Namesort descending Modifiers Type Description Overrides
RouteObject::getRouteContent 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::getRouteContent
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