public function changeRecord(Request $request, $contenttype, $contentid, $id)
{
$entry = $this->changeLogRepository()->getChangeLogEntry($contenttype, $contentid, $id, '=');
if (empty($entry)) {
$error = Trans::__('logs.change-log.not-found');
$this->abort(Response::HTTP_NOT_FOUND, $error);
}
$prev = $this->changeLogRepository()->getChangeLogEntry($contenttype, $contentid, $id, '<');
$next = $this->changeLogRepository()->getChangeLogEntry($contenttype, $contentid, $id, '>');
$context = ['contenttype' => ['slug' => $contenttype], 'entry' => $entry, 'next_entry' => $next, 'prev_entry' => $prev];
return $this->render('@bolt/changelog/changelog_record_single.twig', $context);
}