private function fieldSelect($key, $value, array $fields)
    {
        if (isset($fields[$key]['multiple']) && $fields[$key]['multiple']) {
            $before = $value[0];
            $after = $value[1];
        } else {
            $before = $value[0];
            $after = $value[1];
        }

        return [
            'type'   => $fields[$key]['type'],
            'before' => ['render' => $before],
            'after'  => ['render' => $after],
        ];
    }
private function fieldSelect($key, $value, array $fields)
    {
        if (isset($fields[$key]['multiple']) && $fields[$key]['multiple']) {
            $before = $value[0];
            $after = $value[1];
        } else {
            $before = $value[0];
            $after = $value[1];
        }

        return [
            'type'   => $fields[$key]['type'],
            'before' => ['render' => $before],
            'after'  => ['render' => $after],
        ];
    }
private function fieldSelect ( $ key , $ value , array $ fields ) { if ( isset ( $ fields [ $ key ] [ 'multiple' ] ) && $ fields [ $ key ] [ 'multiple' ] ) { $ before = $ value [ 0 ] ; $ after = $ value [ 1 ] ; } else { $ before = $ value [ 0 ] ; $ after = $ value [ 1 ] ; } return [ 'type' => $ fields [ $ key ] [ 'type' ] , 'before' => [ 'render' => $ before ] , 'after' => [ 'render' => $ after ] , ] ; }
Compile changes for select field types.

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

@return array
Compile changes for select field types .