Networking\InitCmsBundle\Entity\ContentRouteManager::findContentByContentRoute PHP Method

findContentByContentRoute() public method

public findContentByContentRoute ( Networking\InitCmsBundle\Model\ContentRouteInterface $contentRoute ) : object
$contentRoute Networking\InitCmsBundle\Model\ContentRouteInterface
return object
    public function findContentByContentRoute(ContentRouteInterface $contentRoute)
    {
        $repository = $this->objectManager->getRepository($contentRoute->getClassType());
        return $repository->find($contentRoute->getObjectId());
    }