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.
Documentation for on403 function in Http4xxController.php file was wrong. It's showing
A render array containing the message to display for 404 pages.
Here the 404 should be changed to 403 because the function name is on403.
Comment | File | Size | Author |
---|---|---|---|
#2 | fixed-documentation-error-for-on403-function-in-Http4xxController-file-2575967-2.patch | 580 bytes | rashidkhan |
Documentation bug for Http4xxController.png | 6.96 KB | rashidkhan |
Comments
Comment #2
rashidkhan CreditAttribution: rashidkhan as a volunteer commentedFixed the function documentation for on403() function in Http4xxController file in Core/modules/system/src/Controller/Http4xxController.php file.
Comment #3
rashidkhan CreditAttribution: rashidkhan as a volunteer commentedComment #7
mpdonadioLooks like this still applies to 8.3.x and 8.4.x (`git apply --check` worked). And incorrect documentation is a bug per:
But, yeah, this is minor.
Comment #8
xjmStraightforward code documentation improvements can always go into any patch release, alpha, beta, or RC, so please always file them against the production branch (currently 8.3.x). Thanks!
Comment #11
cilefen CreditAttribution: cilefen commentedThank you! I committed this to 8.4.x and cherry-picked it to 8.3.x.