Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 298122

The "null" migration destination plugin can't be used

$
0
0

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?


Viewing all articles
Browse latest Browse all 298122

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>