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.
First paramater of function hook_pathauto_pattern_alter() is documented as string but in fact it is an object.
Comment | File | Size | Author |
---|---|---|---|
#12 | doc-pathauto.png | 185.37 KB | amietpatial |
#11 | interdiff.2904456.9-11.txt | 703 bytes | datvance |
#11 | 2904456-11.pathauto.Wrong-documentation-in-hookpathautopatternalter.patch | 1.32 KB | datvance |
| |||
#9 | interdiff.txt | 756 bytes | Dinesh18 |
#9 | 2904456-9.patch | 776 bytes | Dinesh18 |
|
Comments
Comment #2
junkuncz CreditAttribution: junkuncz commentedComment #3
junkuncz CreditAttribution: junkuncz commentedComment #4
junkuncz CreditAttribution: junkuncz at Mirum Agency commentedComment #5
Dinesh18 CreditAttribution: Dinesh18 as a volunteer commented#2 Looks good to me. +1 to RTBC
Comment #6
tompagabor CreditAttribution: tompagabor commented+1
Small but very useful fix. Makes a lot easier to debug code.
Comment #7
tompagabor CreditAttribution: tompagabor commentedThis issue relates to #2692205: Update hook_pathauto_pattern_alter() documentation
Comment #8
BerdirIt's not just any object, it's a pattern config entity, so we should use the correct type.
Comment #9
Dinesh18 CreditAttribution: Dinesh18 as a volunteer commentedHere is the updated patch and interdiff as per comment #8
Comment #10
nkoporecTested the patch and it looks good.
Comment #11
datvance CreditAttribution: datvance commentedAlso, 'type' key should be 'bundle' in $context documentation. new patch and interdiff attached.
Comment #12
amietpatial CreditAttribution: amietpatial commentedI have checked the documentation it's fine.
Comment #13
nkoporecTested the latest patch and applies cleanly.
Comment #14
amietpatial CreditAttribution: amietpatial as a volunteer and at gai Technologies Pvt Ltd for gai Technologies Pvt Ltd commentedComment #15
idebr CreditAttribution: idebr at ezCompany commentedThere is an earlier issue regarding this hook in #2692205: Update hook_pathauto_pattern_alter() documentation. I'll close this issue as a duplicate, so we can focus our effort in the related issue.
I added you as contributors in the related issue, so you are credited correctly when the issue is committed.