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.
Attached patch has a bunch of documentation fixes for DisplayPluginBase.php. (core/modules/views/lib/Drupal/views/Plugin/views/display/DisplayPluginBase.php)
Beta phase evaluation
Issue category | Task because it is not a bug (doesn't effect functionality), and not a feature request. |
---|---|
Issue priority | Unfrozen because it only changes documentation |
Comment | File | Size | Author |
---|---|---|---|
#33 | 1872682-19-33.txt | 1.7 KB | Maxilver |
#33 | cleanup-DisplayPluginBase-1872682-33.patch | 19.57 KB | Maxilver |
Comments
Comment #1
Ivan Zugec CreditAttribution: Ivan Zugec commentedAttaching patch.
Comment #2
jhodgdonThanks! The changes here look pretty good. There are a few more things you could fix up:
a)
true -> TRUE
b)
Verbs: Check -> Checks [throughout the file, it looks like all the methods have the wrong verbs]
c)
In this one place, you forgot to capitalize Include.
d)
You could also clean up the list indentation -- see http://drupal.org/node/1354#lists -- several places in the file need this fixed.
e)
This function description does not meet our standard of describing what the function actually does (see http://drupal.org/node/1354#functions). The next one suffers from the same problem... The @todo here is also grammatically awful.
Comment #3
Ivan Zugec CreditAttribution: Ivan Zugec commentedThank you so much for your help.
I have implemented the requested changes.
Comment #4
jhodgdonI guess I missed this one:
All functions/methods need to start with a *one-line* description of what the function does, starting with a third-person verb (Determines...).
Here's another one that needs fixing:
Etc.
Comment #5
damiankloip CreditAttribution: damiankloip commentedLets postpone this 'til after feature freeze.
Comment #6
rpayanmactive?
Comment #7
dawehnerThis is not required to be frozen anymore afaik.
Comment #8
rpayanmComment #9
rpayanm#3 rerolled, there is still correct problems in #4.
Comment #10
adci_contributor CreditAttribution: adci_contributor commentedComment #11
joachim CreditAttribution: joachim commentedLooks pretty good, just a couple of things I noticed:
What does NULL do?
How is a rendered pager a boolean?
In both cases though, these are about information that is missing in the docs as they currently stand, and this issue seems to be about fixing the formatting.
Digging around for the missing info will hold this issue up even further, so I'm going to set this to RTBC and suggest these are tackled as follow-ups.
Comment #12
rpayanmfixing what was said in #4
Comment #13
jhodgdonRegarding #4, the other problem is that the descriptions at the tops of functions are supposed to be ***only one line***. They still aren't. The verbs are better but this needs to be fixed. If you need more than one line of description, put it in a separate paragraph.
Sorry, but this is not ready to commit.
Comment #15
Maxilver CreditAttribution: Maxilver commentedTrying to combine all the comments.
To split the description in one line, I'm rephrased it a bit. This is acceptable?
Also noticed in optionLink() : a title to anchor is wrapped in
<span>
. Is it not a bug?Comment #16
jhodgdonYes, that's the idea, thanks!
Most of these splits are great. I think we could use a few small adjustments to what you did, and I read through the whole patch so some of the items below are not related to the most recent changes, but they all need to be fixed in this patch:
a)
I don't really think we need that second line. It doesn't tell us much/anything. Let's take it out to reduce clutter.
b) Same in this one:
Yeah, I mean, if the answer is no, they shouldn't be displayed, then ... duh. :)
c)
This is OK, but maybe we can make it more compact, and ... looking at the code, I think it should be:
Returns the ID of the display to use when making links.
d)
First line: should be "an option".
e)
This doesn't actually make sense... How about:
* Gets an option, from this display or the default display.
and get rid of the 2nd line?
f) The setOption function needs a similar fix to (e)
g)
The first line should say "Returns a link to a section of a form." I think?
h)
In the To Do, the last word should be "used" not "use". Also... the first line should probably be changed to something with a verb in it... perhaps "Does nothing (obsolete function)."?
i)
That cannot be accurate. The function returns TRUE. That is not a rendered pager, it is a Boolean value... I do not know what the function does but this description isn't right.
j)
Um. The new version is not grammatical and should probably be:
Executes the view and returns data in the format required.
Comment #17
Maxilver CreditAttribution: Maxilver commentedThank you for your corrections!
For renderPager(), maybe should be "Checks to see if the display plugins support pager rendering"?
If I overlooked something please let me know.
Comment #18
jhodgdonAn interdiff would have been helpful! See https://drupal.org/documentation/git/interdiff -- here's one for anyone else reviewing (interdiff is between patch in #15 to #17).
So... All this looks great except the setOption method:
That "from" should be "on", for the set function (it is "from" on the get function, but that doesn't make sense for set).
I like your wording for the renderPager function -- good.
So, just one small change (please make an interdiff file) and it should be good! Thanks!
Comment #19
Maxilver CreditAttribution: Maxilver commentedThank you again for your attentiveness.
I guess we need a reroll after #2394041: Row language settings from entity views should be on display level for all views.
Rerolled #17 w/o changes.
Attaching the #18 correction and interdiff. (It's my first interdiff so I hope I created it right)
Comment #20
jhodgdonNice job! Looks good to me. Thanks!
Comment #21
Maxilver CreditAttribution: Maxilver commentedI'm trying to add a beta phase evaluation to the issue summary.
Comment #23
dawehnerThe documentation changes seems to be fine here. Thank you for your work!
Should we maybe quote the keys which have spaces?
Comment #24
Maxilver CreditAttribution: Maxilver commentedDid you mean it should be something like that?
Comment #25
jhodgdonQuoting keys is not what our documentation standards for lists say to do. :( We should go back to the patch in #19 I think. Also, **please** when you upload a new patch, also include an interdiff!
Comment #26
Maxilver CreditAttribution: Maxilver commentedI created #24 only to clarify the quoting suggestion. So I thought that the interdiff is not required. Sorry.
Comment #28
Maxilver CreditAttribution: Maxilver commentedpatch 19 is passed now, return to RTBC.
Comment #29
jhodgdonI am re-uploading the patch in #19 so that the wrong patch does not get committed by mistake.
Comment #30
alexpottThis is unnecessarily gendered language. There are no guys here.
These sections are special.
would be fine but what would be really nice is to know why these sections are special?Space at the end of this line and the word
to
can be moved to the line above.Unnecessary space at the end of this line.
This is not a helpful comment.
Comment #31
Maxilver CreditAttribution: Maxilver commentedWhat can we do with #30-4?
It would be acceptable if we will just specify that this modifications affect
$this->options
?Comment #32
jhodgdonThe comment in #4 can probably be removed. Comments should explain the why not the how/what in code. If there is no "why" to comment on, get rid of the comment.
Comment #33
Maxilver CreditAttribution: Maxilver commentedPlease review.
Comment #34
jhodgdonThis addresses the review comments, thanks!
Comment #35
alexpottCommitted 2db5da0 and pushed to 8.0.x. Thanks!