public function changeLogRecord($contenttype, $contentid)
    {
        $options = [
            'contentid' => $contentid,
            'limit'     => 4,
            'order'     => 'date',
            'direction' => 'DESC',
        ];

        /** @var Repository\LogChangeRepository $repo */
        $repo = $this->storage()->getRepository(Entity\LogChange::class);

        $context = [
            'contenttype' => $contenttype,
            'entries'     => $repo->getChangeLogByContentType($contenttype, $options),
        ];

        return $this->render('@bolt/components/panel-change-record.twig', ['context' => $context]);
    }
public function changeLogRecord($contenttype, $contentid)
    {
        $options = [
            'contentid' => $contentid,
            'limit'     => 4,
            'order'     => 'date',
            'direction' => 'DESC',
        ];

        /** @var Repository\LogChangeRepository $repo */
        $repo = $this->storage()->getRepository(Entity\LogChange::class);

        $context = [
            'contenttype' => $contenttype,
            'entries'     => $repo->getChangeLogByContentType($contenttype, $options),
        ];

        return $this->render('@bolt/components/panel-change-record.twig', ['context' => $context]);
    }
public function changeLogRecord ( $ contenttype , $ contentid ) { $ options = [ 'contentid' => $ contentid , 'limit' => 4 , 'order' => 'date' , 'direction' => 'DESC' , ] ; /** @var Repository\LogChangeRepository $repo */ $ repo = $ this -> storage ( ) -> getRepository ( Entity \ LogChange :: class ) ; $ context = [ 'contenttype' => $ contenttype , 'entries' => $ repo -> getChangeLogByContentType ( $ contenttype , $ options ) , ] ; return $ this -> render ( '@bolt/components/panel-change-record.twig' , [ 'context' => $ context ] ) ; }
Generate the change log box for a single record in edit.

@param string $contenttype
@param int    $contentid

@return \Bolt\Response\TemplateResponse
Generate the change log box for a single record in edit .