Bolt\Legacy\Storage::logUpdate PHP Method

logUpdate() private method

This function must be called *before* the actual update, because it fetches the old content from the database.
private logUpdate ( string $contenttype, integer $contentid, array $newContent, array $oldContent = null, string $comment = null )
$contenttype string Slug of the record contenttype
$contentid integer ID of the record
$newContent array New record values
$oldContent array Old record values
$comment string Editor's comment
    private function logUpdate($contenttype, $contentid, $newContent, $oldContent = null, $comment = null)
    {
        $this->app['logger.change']->info('Update record', ['action' => 'UPDATE', 'contenttype' => $contenttype, 'id' => $contentid, 'new' => $newContent, 'old' => $oldContent, 'comment' => $comment]);
    }