Closed (fixed)
Project:
IMP
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Reporter:
Created:
21 Feb 2014 at 10:22 UTC
Updated:
15 Mar 2014 at 15:30 UTC
Jump to comment: Most recent, Most recent file
For every file in core/modules/migrate_drupal/lib/Drupal/migrate_drupal/Plugin/migrate/source/d6 which implements RequirementsInterface
source_provider = "modulename" lineimplements RequirementsInterface.use Drupal\migrate\Plugin\RequirementsInterface; (the example missed this)| Comment | File | Size | Author |
|---|---|---|---|
| #5 | imp-2202023-3.patch | 18.94 KB | bdone |
| #2 | changes.txt | 1.18 KB | chx |
Comments
Comment #1
marvil07 commentedI'm a little confused, so hopefully someone can help me to understand.
2. what would modulename would be meaning? the drupal origin module with related functionality/schema or the module that provides the migrate source? if origin module, it would be too specific, since it will work only with drupal sources, right?, so I guess is the second alternative, which the only use I can think for it now would be to help instrospect the plugin.
This seems to not be about removing RequirementsInterface, but change its use on d6 migrate source plugins, and that sounds fine, but I still would like to know how the explained steps can replace what should be done(not sure if on migrate executer we are yet using RequirementsInterface) via that interface.
Comment #2
chx commentedSorry I forgot to add the example file. Hope this clarifies! The modulename comes from checkRequirements.
Comment #3
bdone commentedgoing to try some work on this one...
Comment #4
bdone commented@marvil07: not sure this answers your question, but after completing the tasks in this issue, it looks like the source_provider annotation still uses checkRequirements(), only now from DrupalSqlBase::create().
Comment #5
bdone commentedattaching a first pass at this one...
Comment #6
chx commented15 files changed, 42 insertions(+), 150 deletions(-)
That's how we like our patches! Thanks much, committed. (https://drupal.org/node/2208061 bot tested btw)