protected function mergePresets(array $data)
    {
        if (isset($data['attachable_objects'])) {
            $data['attachable_objects'] = $this->mergePresetAttachableObjects($data['attachable_objects']);
        }

        if (isset($data['default_attachable_objects'])) {
            $data['attachable_objects'] = $this->mergePresetAttachableObjects($data['default_attachable_objects']);
        }

        if (isset($data['preset'])) {
            $data = $this->mergePresetWidget($data);
        }

        return $data;
    }
protected function mergePresets(array $data)
    {
        if (isset($data['attachable_objects'])) {
            $data['attachable_objects'] = $this->mergePresetAttachableObjects($data['attachable_objects']);
        }

        if (isset($data['default_attachable_objects'])) {
            $data['attachable_objects'] = $this->mergePresetAttachableObjects($data['default_attachable_objects']);
        }

        if (isset($data['preset'])) {
            $data = $this->mergePresetWidget($data);
        }

        return $data;
    }
protected function mergePresets ( array $ data ) { if ( isset ( $ data [ 'attachable_objects' ] ) ) { $ data [ 'attachable_objects' ] = $ this -> mergePresetAttachableObjects ( $ data [ 'attachable_objects' ] ) ; } if ( isset ( $ data [ 'default_attachable_objects' ] ) ) { $ data [ 'attachable_objects' ] = $ this -> mergePresetAttachableObjects ( $ data [ 'default_attachable_objects' ] ) ; } if ( isset ( $ data [ 'preset' ] ) ) { $ data = $ this -> mergePresetWidget ( $ data ) ; } return $ data ; }
Parse the given data and recursively merge presets from attachments config.

@param  array $data The widget data.
@return array Returns the merged widget data.
Parse the given data and recursively merge presets from attachments config .