Closed (fixed)
Project:
Drupal core
Version:
8.7.x-dev
Component:
documentation
Priority:
Normal
Category:
Bug report
Assigned:
Issue tags:
Reporter:
Created:
28 Aug 2017 at 14:10 UTC
Updated:
26 Sep 2018 at 11:39 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
iainp999 commentedHi @joachim
Are the comments in the attached patch correct? Do they cover this or is there more to say?
Thanks.
Comment #3
iainp999 commentedComment #4
iainp999 commentedOops, sorry. Initial docblock wasn't quite right. New patch attached. (Didn't bother with interdiff, since this is small).
Comment #5
iainp999 commentedOr perhaps the attached is better?
Comment #7
borisson_I agree, I think this is a good idea to add the assumptions in the documentation of this method.
Comment #8
alexpottI don't think repeating the documentation about the implementation helps. It means that if we can the implementation we have to change documentation. I think what I'd do is change
Determine the application root directory based on assumptions.toDetermine the application root directory based on this file's location.and then only have the inline comments next to the code as the implementation is probably not that important to the caller.The inline comments current don't obey the API docs standard - there is no empty line in-between the colon and that first hyphen. See https://www.drupal.org/docs/develop/coding-standards/api-documentation-a...
Comment #9
gawaksh commentedThis patch might fulfil the requirements.
Comment #10
gawaksh commentedComment #11
borisson_The suggestion in #9 doesn't do what @alexpott suggested in #8.
Comment #12
gawaksh commentedHere's a fresh patch after the changes.
Comment #13
msankhala commentedHere is a patch as per suggestion in #8 by @alexpott.
Comment #15
joachim commentedLGTM. Thanks!
Comment #18
alexpottCommitted 03a3058 and pushed to 8.7.x and 8.6.x. Thanks!