Skip to content

Pass the Deformatter to Importer::canImport() #88

@Crell

Description

@Crell

Currently, Importer::canImport() accepts a Field and a format name string. However, there are cases where we want to know more about the Deformatter, such as if its source value is an array that we can type introspect.

For 2.x, we should change the API to pass the full Deformatter to canImport().

That will also allow us to add an ArrayBased marker interface to the Array, CSV, JSON, YAML, and TOML Deformatters for canImport() to check if needed.

See the notes in MixedField and UnionField for an example of where we want that.

Metadata

Metadata

Assignees

No one assigned

    Labels

    2.x targetChanges that should be made in 2.0 but not before, as they'd be a BC break.enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions