Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Add API documentation. Make sure that configuration parameters and working with translations are included. Add suitable examples too.
See the documentation in the process plugins for format examples.
Actually, as pointed out in #12, the Empty source plugin does not have anything to do with translations. So, that is not a consideration here.
Comment | File | Size | Author |
---|---|---|---|
#10 | interdiff-2862673-5-9.txt | 980 bytes | masipila |
#10 | 2862673-9.patch | 888 bytes | masipila |
#5 | interdifff.txt | 528 bytes | Pavan B S |
#5 | 2862673-5.patch | 928 bytes | Pavan B S |
#2 | 2862673-2.patch | 819 bytes | jofitz |
Comments
Comment #2
jofitz CreditAttribution: jofitz at ComputerMinds commentedThis is a start, at least. I don't believe there are any configuration keys for this source plugin.
Comment #3
shabana.navas CreditAttribution: shabana.navas at Acro Commerce commentedComment #4
alexpottHmm... but is doesn't return an empty row? It returns a row based on the constants provided right?
Comment #5
Pavan B S CreditAttribution: Pavan B S at Valuebound commentedApplying the patch based on comment suggested in #4
Comment #6
boaloysius CreditAttribution: boaloysius as a volunteer and at Google Summer of Code commentedComment #7
phenaproximaSelf-assigning for review.
Comment #8
phenaproximaI would strike this sentence entirely. It's a Migrate Drupal example, and this is a Migrate plugin (i.e., lower level than Migrate Drupal).
This paragraph is confusing. Can it simply explain the example: "This will return a single row containing 'entity_type' and 'field_name' elements, with values of 'user' and 'image', respectively."
Comment #10
masipila CreditAttribution: masipila as a volunteer commentedThis patch should address the remaining topics from #8.
@phenaproxima, this old issue has been assigned to you for the past 7 months :) I unassigned you so that others can review this as well. Feel free to assign yourself back to this if you want to review this by yourself.
Cheers,
Markus
p.s. Both of the remaining issues of this parent meta are now in 'Needs review', yay :)
Comment #11
phenaproximaNice, concise, and eminently useful. This is my kind of patch. Thanks a million, @masipila!
RTBC once Drupal CI passes it.
Comment #12
Gábor HojtsyHm, issue summary says "Make sure that configuration parameters and working with translations are included.". Is that some common issue text used? Not sure what would apply here for translations.
Comment #13
quietone CreditAttribution: quietone as a volunteer commentedYes, this plugin does not need to address translations. The text in the issue summary was boilerplate when making these documentation issues to ensure that translations were considered. And it worked! We now explicitly state that nothing needs to be done for translations.
Comment #15
quietone CreditAttribution: quietone as a volunteer commentedOh, forgot to RTBC
Comment #17
Gábor HojtsyLooks good to me then. Thanks all!