src/Utility/Import.php
public static function prepareOptions(array $options) : array
    {
        if (empty($options['fields'])) {
            return [];
        }

        $result = [];
        foreach ($options['fields'] as $field => $params) {
            if (empty($params['column']) && empty($params['default'])) {
                continue;
            }

            $result['fields'][$field] = $params;
        }

        return $result;
    }
public static function prepareOptions(array $options) : array
    {
        if (empty($options['fields'])) {
            return [];
        }

        $result = [];
        foreach ($options['fields'] as $field => $params) {
            if (empty($params['column']) && empty($params['default'])) {
                continue;
            }

            $result['fields'][$field] = $params;
        }

        return $result;
    }
public static function prepareOptions ( array $ options ) : array { if ( empty ( $ options [ 'fields' ] ) ) { return [ ] ; } $ result = [ ] ; foreach ( $ options [ 'fields' ] as $ field => $ params ) { if ( empty ( $ params [ 'column' ] ) && empty ( $ params [ 'default' ] ) ) { continue ; } $ result [ 'fields' ] [ $ field ] = $ params ; } return $ result ; }
Prepare import options by removing fields with empty mapping parameters.

@param mixed[] $options Import options
@return mixed[]
Prepare import options by removing fields with empty mapping parameters .