You are here

public function ContentRepositoryInterface::findById in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony-cmf/routing/ContentRepositoryInterface.php \Symfony\Cmf\Component\Routing\ContentRepositoryInterface::findById()

Return a content object by it's id or null if there is none.

If the returned content implements RouteReferrersReadInterface, it will be used to get the route from it to generate an URL.

Parameters

string $id id of the content object:

Return value

object A content that matches this id.

File

vendor/symfony-cmf/routing/ContentRepositoryInterface.php, line 35

Class

ContentRepositoryInterface
Interface used by the DynamicRouter to retrieve content by it's id when generating routes from content-id.

Namespace

Symfony\Cmf\Component\Routing

Code

public function findById($id);