Add API documentation to the DefaultValue process plugin.
| Comment | File | Size | Author |
|---|---|---|---|
| #19 | interdiff-9-19.txt | 1.17 KB | jofitz |
| #19 | 2845477-19.patch | 1.66 KB | jofitz |
| #9 | interdiff-2845477-9.txt | 1.37 KB | gerzenstl |
| #9 | 2845477-9.patch | 1.64 KB | gerzenstl |
| #7 | interdiff.txt | 1.37 KB | gerzenstl |
Comments
Comment #2
quietone commentedComment #3
quietone commentedComment #4
phenaproximaSelf-assigning for review.
Comment #5
phenaproximaLet's remove these references to the pipeline -- they're confusing in the context of a single plugin. I think this should simply say "The plugin returns a default value if the input value is considered empty (NULL, FALSE, 0, '0', an empty string, or an empty array)".
Should end with a colon.
s/pipeline/input
"Apply default when input value is NULL."
Let's axe this sentence.
Comment #7
gerzenstl commentedAdded changed to class documentation.
Comment #8
phenaproximaLooking really good. One very minor change, then it's RTBC.
Let's change "pipeline" to "incoming".
Comment #9
gerzenstl commentedChange added.
Comment #10
phenaproximaFull steam ahead!
Comment #11
holingpoon commentedEdit: Please ignore this message. Just getting a hang of writing patches. Thanks!
I applied patch at #7 first before patch at #9. Should I have not done that? Because #9 came back with following error messages:
error: patch failed: core/modules/migrate/src/Plugin/migrate/process/DefaultValue.php:7
error: core/modules/migrate/src/Plugin/migrate/process/DefaultValue.php: patch does not apply
This is on 8.4.x branch.
Comment #14
gerzenstl commentedComment #15
quietone commentedTest really did pass.
Comment #16
xjmAs a docs improvement, this can go in patch releases.
Comment #18
xjmIt'll be good to have these docs in the codebase. Just a couple small points:
Sets a default value for what?
The first list level is indented two spaces too far; the bullets should match the line above.
Also, FALSE and TRUE should be all caps, and the
=should be:instead to be formatted properly on API.d.o.Thanks everyone!
Comment #19
jofitzChanges in response to code review.
Comment #20
phenaproximaPerfezione! (That's 'perfection' in Italian, according to Google Translate.)
Comment #21
alexpottCommitted and pushed 559e61a to 8.4.x and e2b7797 to 8.3.x. Thanks!