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.
-
<?php * @param int $account * The account ID to check. ?>
$account is not an int.
/core/modules/tracker/tracker.module -> _tracker_myrecent_access(AccountInterface $account) - @param detail is missing
/core/modules/tracker/tracker.pages.inc -> tracker_page($account = NULL)
Comment | File | Size | Author |
---|---|---|---|
#12 | interdiff-2608890-9-12.txt | 498 bytes | ashhishhh |
#12 | improve_doc_tracker-2608890-12.patch | 1.06 KB | ashhishhh |
#9 | interdiff-2608890-2-9.txt | 976 bytes | ashhishhh |
#9 | improve_doc_tracker-2608890-9.patch | 1.07 KB | ashhishhh |
#6 | interdiff-2608890-2-6.txt | 496 bytes | ashhishhh |
Comments
Comment #2
ashhishhh CreditAttribution: ashhishhh at Valuebound commentedComment #3
ashhishhh CreditAttribution: ashhishhh at Valuebound commentedComment #4
ashhishhh CreditAttribution: ashhishhh at Valuebound commentedComment #5
jhodgdonThanks for the patch! Sorry for delay in review -- I've been on vacation.
This patch needs a bit of work, I think:
The docs here still say it is an account ID. That is incorrect.
It seems unlikely, in 8.x, that what is passed in here is a generic "object".
If you go to
https://api.drupal.org/api/drupal/core!modules!tracker!tracker.pages.inc...
and look at the 3 calls to this function, the two that pass something in here are passing in a UserInterface object. So we should document it that way I think.
Comment #6
ashhishhh CreditAttribution: ashhishhh at Valuebound commented@jhodgdon Thanks.
Giving a new patch.
Comment #7
ashhishhh CreditAttribution: ashhishhh at Valuebound commentedComment #8
jhodgdonThanks, but according to the interdiff, only point 1 from review comment #5 was fixed. Please also fix point 2.
Comment #9
ashhishhh CreditAttribution: ashhishhh at Valuebound commented@jhodgdon,
Yes, I missed point 2.
Now added.
Comment #10
ashhishhh CreditAttribution: ashhishhh at Valuebound commentedComment #11
jhodgdonThanks! However, it doesn't look to me as though in tracker.module, the $account parameter to _tracker_myrecent_access() is optional. There is no default.
In the other function, in tracker.pages.inc, that one is optional.
Comment #12
ashhishhh CreditAttribution: ashhishhh at Valuebound commentedoops, I missed that.
Here is the correction.
Comment #13
ashhishhh CreditAttribution: ashhishhh at Valuebound commentedComment #16
jhodgdonThanks! Looks good to me. Committed to both 8.x branches.