private function fieldImage($key, $value, array $fields)
    {
        $before = Json::parse($value[0]);
        $after = Json::parse($value[1]);

        return [
            'type'   => $fields[$key]['type'],
            'before' => [
                'render' => [
                    'file'  => $before['file'],
                    'title' => $before['title'],
                ],
            ],
            'after'  => [
                'render' => [
                    'file'  => $after['file'],
                    'title' => $after['title'],
                ],
            ],
        ];
    }
private function fieldImage($key, $value, array $fields)
    {
        $before = Json::parse($value[0]);
        $after = Json::parse($value[1]);

        return [
            'type'   => $fields[$key]['type'],
            'before' => [
                'render' => [
                    'file'  => $before['file'],
                    'title' => $before['title'],
                ],
            ],
            'after'  => [
                'render' => [
                    'file'  => $after['file'],
                    'title' => $after['title'],
                ],
            ],
        ];
    }
private function fieldImage ( $ key , $ value , array $ fields ) { $ before = Json :: parse ( $ value [ 0 ] ) ; $ after = Json :: parse ( $ value [ 1 ] ) ; return [ 'type' => $ fields [ $ key ] [ 'type' ] , 'before' => [ 'render' => [ 'file' => $ before [ 'file' ] , 'title' => $ before [ 'title' ] , ] , ] , 'after' => [ 'render' => [ 'file' => $ after [ 'file' ] , 'title' => $ after [ 'title' ] , ] , ] , ] ; }
Compile changes for image field types.

@param string $key
@param string $value
@param array  $fields

@return array
Compile changes for image field types .