private function logInsert($contenttype, $contentid, $content, $comment = null)
    {
        $this->app['logger.change']->info(
            'Insert record',
            [
                'action'      => 'INSERT',
                'contenttype' => $contenttype,
                'id'          => $contentid,
                'new'         => $content,
                'old'         => null,
                'comment'     => $comment,
            ]
        );
    }
private function logInsert($contenttype, $contentid, $content, $comment = null)
    {
        $this->app['logger.change']->info(
            'Insert record',
            [
                'action'      => 'INSERT',
                'contenttype' => $contenttype,
                'id'          => $contentid,
                'new'         => $content,
                'old'         => null,
                'comment'     => $comment,
            ]
        );
    }
private function logInsert ( $ contenttype , $ contentid , $ content , $ comment = null ) { $ this -> app [ 'logger.change' ] -> info ( 'Insert record' , [ 'action' => 'INSERT' , 'contenttype' => $ contenttype , 'id' => $ contentid , 'new' => $ content , 'old' => null , 'comment' => $ comment , ] ) ; }
Writes a content-changelog entry for a newly-created entry.

@param string  $contenttype Slug of the record contenttype
@param integer $contentid   ID of the record
@param array   $content     Record values
@param string  $comment     Editor's comment
Writes a content - changelog entry for a newly - created entry .