Problem/Motivation
Running the d6_field_formatter_settings migration, with multiples fields type (text, link, date), only date are "created". Other are "failed".
The message logged is, for example:
Failed to lookup field type array (
0 => 'link',
1 => 'default',
) in the static map.
After a long investigation I found that this is due to /core/modules/field/src/Plugin/migrate/process/d6/FieldTypeDefaults.php
Although it does trigger a MigrateException
(= message), IMHO it misses a more explicit explanation like:
text/link/xxx field migration does not provide yet support migrating default-value
(+ using ignored rather than failed).
That would avoid one to think that the migration somehow failed.
Also, the code does not explains why it only migrate "date" default value and not the other field types.
Proposed resolution
Change the MigrateException message in d6/FieldTypeDefaults process plugin fromFailed to lookup field type %s in the static map.
toNo default field type found for field type %s
Remaining tasks
Review
Commit