Bolt\Legacy\Storage::logInsert PHP Method

logInsert() private method

Writes a content-changelog entry for a newly-created entry.
private logInsert ( string $contenttype, integer $contentid, array $content, string $comment = null )
$contenttype string Slug of the record contenttype
$contentid integer ID of the record
$content array Record values
$comment string Editor's 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]);
    }