public function findContentByContentRoute(ContentRouteInterface $contentRoute) { $repository = $this->objectManager->getRepository($contentRoute->getClassType()); return $repository->find($contentRoute->getObjectId()); }