I'm trying to write a migration that creates a stub using the migration process plugin, but doesn't actually use a destination plugin. Since it's not valid to omit the destination phase completely, I noticed there is a destination plugin called "null" which does exactly what I need at \Drupal\migrate\Plugin\migrate\destination\NullDestination
.
The problem is that its annotation contains the line requirements_met = false
. Any attempts to use it cause an error that "Migration X did not meet the requirements". The only way I could find to avoid this was to create my own plugin which is a subclass of "null", but omits requirements_met = false
in the annotation.
Why is this line present? Is it intentional?