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 to the Extract process plugin.
Comment | File | Size | Author |
---|---|---|---|
#16 | interdiff-extract.txt | 1.17 KB | xjm |
#14 | 2845479-14.patch | 2.25 KB | MaskyS |
#8 | interdiff-6-8.txt | 1.72 KB | jofitz |
#8 | 2845479-8.patch | 1.88 KB | jofitz |
#6 | interdiff-1-6.txt | 2.14 KB | gerzenstl |
Comments
Comment #2
quietone CreditAttribution: quietone as a volunteer commentedComment #3
phenaproximaSelf-assigning for review.
Comment #5
phenaproximas/source value/input
I'd rather this said "from an input array, which may have multiple levels."
Needs to end with a colon.
Can this just say "the input value"?
This needs to be better explained.
This line should not exceed 80 characters.
This should just be @inheritdoc.
Comment #6
gerzenstl CreditAttribution: gerzenstl at 42mate commentedI added all changes suggested by @phenaproxima and also fixed a typo I found at #6 ("assing").
Comment #7
phenaproximaVery close now.
Let's change this to "Extracts a value from an array."
Nit: Exceeds 80 characters.
This is phrased awkwardly. I'd prefer something like "For instance, in Drupal 7, a field array would be indexed first by language, then by delta, then finally a key such as 'value'."
Let's mention that this must be an array.
This first sentence is redundant. Let's ice it.
More weird phrasing. Can it say "If a default value is specified, it will be returned if the index does not exist in the input array"?
Comment #8
jofitz CreditAttribution: jofitz at ComputerMinds commentedDocumentation tweaks in response to #7.
Comment #9
phenaproximaI love it. Looks fantastic.
Comment #10
xjmStraightforward code documentation improvements can always go into any patch release, alpha, beta, or RC, so please always file them against the production branch (currently 8.3.x). Thanks!
Comment #12
phenaproximaRandom CI failure.
Comment #13
xjmOverall this documentation reads very well. Just some coding standards fixes and small typos:
There is misformatting here where the array is indented, but the hyphens of the list should line up with the paragraph above. Also, the line with "key" is indented by one space too many.
This should also be in
@code
tags, and the period at the end is not syntactically correct for PHP :)Thanks everyone!
Comment #14
MaskyS CreditAttribution: MaskyS at Google Code-In commentedFixed the issues stated in #13
Comment #15
phenaproximaThis line needs to be indented two spaces, but that can be fixed on commit. Looks good to me otherwise.
Comment #16
xjm@Kifah Meeran, when you update patches, please be sure to provide an interdiff: https://www.drupal.org/documentation/git/interdiff
Here is an interdiff between #8 and #14.
Comment #19
xjmThe semicolon is still missing here. :) But I can add that on commit as well. Here are the changes I made on commit:
Committed to 8.4.x and 8.3.x. Thanks everyone; good to see this documentation being added!