src/Metabox/Manager.php
protected function getMetaboxData(Collection $fields)
    {
        $data = [];

        foreach ($fields as $field) {
            $data[$field['name']] = $field['value'];
        }

        return $data;
    }
protected function getMetaboxData(Collection $fields)
    {
        $data = [];

        foreach ($fields as $field) {
            $data[$field['name']] = $field['value'];
        }

        return $data;
    }
protected function getMetaboxData ( Collection $ fields ) { $ data = [ ] ; foreach ( $ fields as $ field ) { $ data [ $ field [ 'name' ] ] = $ field [ 'value' ] ; } return $ data ; }
Return the metabox data for validation.

@param Collection $fields

@return array
Return the metabox data for validation .