public function RouteObjectInterface::getRouteContent

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.

If there is no specific content for this url (i.e. its an "application" page), may return null.

To interoperate with the standard Symfony\Cmf\Bundle\ContentBundle\Document\StaticContent the instance MUST store the property in the field <code>routeContent</code> to have referrer resolution work.

Return value

object the document or entity this route entry points to

2 methods override RouteObjectInterface::getRouteContent()
RouteMock::getRouteContent in drupal/core/vendor/symfony-cmf/routing/Symfony/Cmf/Component/Routing/Tests/Routing/RouteMock.php
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.
RouteObject::getRouteContent in drupal/core/vendor/symfony-cmf/routing/Symfony/Cmf/Component/Routing/Tests/Routing/ProviderBasedGeneratorTest.php
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.

File

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

Class

RouteObjectInterface
Classes for entries in the routing table may implement this interface in addition to extending Symfony\Component\Routing\Route.

Namespace

Symfony\Cmf\Component\Routing

Code

public function getRouteContent();