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.
API page: https://api.drupal.org/api/drupal/core%21modules%21migrate%21src%21Plugi...
The documentation contains two occurrences where the Get class is referenced by a lower case get at the start of a sentence - when it should be Get.
In the following example code, @foo should be quoted; '@foo' and the parameters below process: should be indented 2 spaces.
process:
@foo:
plugin: machine_name
source: baz
bar:
plugin: get
source: '@@@foo'
Comment | File | Size | Author |
---|---|---|---|
#21 | fix-quotes-in-example-code-2941318-21-00B.patch | 1.8 KB | apaderno |
#18 | interdiff-2941318-9-11.txt | 1 KB | chiranjeeb2410 |
#18 | interdiff-2941318-11-15.txt | 817 bytes | chiranjeeb2410 |
#15 | incorrect-documentation-formatting-2941318-15.patch | 1.8 KB | davewilly |
#5 | 2941318-5.patch | 402 bytes | chiranjeeb2410 |
Comments
Comment #2
davewilly CreditAttribution: davewilly as a volunteer commentedComment #3
cilefen CreditAttribution: cilefen commentedComment #4
chiranjeeb2410 CreditAttribution: chiranjeeb2410 at Google Summer of Code commented@davewily, should the change be made only for his chunk of the code?
Comment #5
chiranjeeb2410 CreditAttribution: chiranjeeb2410 at Google Summer of Code commented@davewilly,
Attached patch as required. Review accordingly.
Comment #6
davewilly CreditAttribution: davewilly as a volunteer commentedLooks good, you beat me to it :)
Comment #7
chiranjeeb2410 CreditAttribution: chiranjeeb2410 at Google Summer of Code commented@davewilly,
Thanks for the review :)
Comment #8
cilefen CreditAttribution: cilefen as a volunteer commentedThe issue as written seems ok, however, shouldn't '@foo' and 'bar' be sub-keys of 'process'?
Comment #9
davewilly CreditAttribution: davewilly as a volunteer commentedGood spot @cilifen, patch updated.
Comment #10
apadernoYes, those are sub-keys, as in the other examples.
I would also change the following sentence, which can just be more straight.
I would rather write it as:
Also, get is used twice instead of the class name, which is Get.
Comment #11
davewilly CreditAttribution: davewilly as a volunteer commentedPatch updated with adjusted description.
Isn't the lower case get correct since it references the annotation id?
Comment #12
apadernoThe page is about the
Get
class, so it should say Get. I am not sure classes has been referenced with its annotation ID, in the documentation.Comment #13
davewilly CreditAttribution: davewilly as a volunteer commentedYou are referring to the lower case get in the copy not the example code? e.g.
These references should all be replaced with Get ?
Comment #14
apadernoYes, that's correct. The example code is fine; it's just what the sentences use to refer the class that should be changed, IMO.
I am fine as it is too, though. Actually, The get plugin is fine, but not get alone as used in the other sentence. (get also supports a list of source properties.)
Comment #15
davewilly CreditAttribution: davewilly as a volunteer commentedUpdated to make lower case get references at start of sentences, uppercase.
Comment #16
shubhangi1995I have checked the patch, all the above mentioned points have been corrected.
Comment #17
shubhangi1995Comment #18
chiranjeeb2410 CreditAttribution: chiranjeeb2410 at Google Summer of Code commentedPatch seems to address all mentioned points correctly. However, adding interdiffs, as it just makes the
job easier.
Comment #19
cilefen CreditAttribution: cilefen as a volunteer commentedIf someone else comes around to commit this they'll not understand the changes being made in relation to the issue title and summary, which are different.
Comment #20
davewilly CreditAttribution: davewilly as a volunteer commentedComment #21
apadernoThe patch applies to Drupal 8.6 without changes.
Comment #22
cilefen CreditAttribution: cilefen at Institute for Advanced Study commentedComment #23
chiranjeeb2410 CreditAttribution: chiranjeeb2410 at Google Summer of Code commentedPatch suffices all the changes required against latest core. RTBC for me!
Comment #25
chiranjeeb2410 CreditAttribution: chiranjeeb2410 at Google Summer of Code commentedTestbot issues.
Comment #26
alexpottThe updated docs look good.
Committed and pushed a31892acd2 to 8.6.x and a52fc43666 to 8.5.x. Thanks!