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' => $this->getOption('contenttypes/' . $contenttype),
            'entry'       => $entry,
            'next_entry'  => $next,
            'prev_entry'  => $prev,
        ];

        return $this->render('@bolt/changelog/changelog_record_single.twig', $context);
    }
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' => $this->getOption('contenttypes/' . $contenttype),
            'entry'       => $entry,
            'next_entry'  => $next,
            'prev_entry'  => $prev,
        ];

        return $this->render('@bolt/changelog/changelog_record_single.twig', $context);
    }
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' => $ this -> getOption ( 'contenttypes/' . $ contenttype ) , 'entry' => $ entry , 'next_entry' => $ next , 'prev_entry' => $ prev , ] ; return $ this -> render ( '@bolt/changelog/changelog_record_single.twig' , $ context ) ; }
Show a single change log entry.

@param Request $request
@param string  $contenttype ContentType slug
@param int     $contentid   Content record ID
@param int     $id          The change log entry ID

@return \Bolt\Response\TemplateResponse
Show a single change log entry .