Closed (fixed)
Project:
Drupal core
Version:
8.5.x-dev
Component:
documentation
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
8 Mar 2018 at 13:20 UTC
Updated:
21 Jun 2018 at 21:14 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
parvateesam commentedI have added @param, @return for cacheGet() and @param for cacheSet() as well.
Comment #3
nkoporecI think there is grammar error, the sentence should be: True if data has been taken from the cache otherwise return false.
Comment #4
joachim commented> I think there is grammar error, the sentence should be: True if data has been taken from the cache otherwise return false.
I don't think we need the extra 'return' in there, but:
1. IIRC constants should be in capitals even in docs: TRUE, not true.
2. a comma would help readability.
So:
> TRUE if data has been taken from the cache, otherwise FALSE.
Comment #5
nkoporecCreated a new patch with fixed description.
Comment #6
amietpatial commented@ nkoporec Patch #5 applied successfully
Comment #7
msankhala commentedComment #8
msankhala commentedI have updated the issue title because this patch is actually fixing docblock for both
CachePluginBase::cacheGet()andCachePluginBase::cacheSet().I can confirm this patch #5 applies cleanly.
Comment #10
catchCommitted/pushed to 8.6.x and cherry-picked to 8.5.x. Thanks!