Bolt\Controller\Async\General::changeLogRecord PHP Method

changeLogRecord() public method

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