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.
API page: https://api.drupal.org/api/drupal/core%21modules%21system%21theme.api.ph...
The first parameter is sometimes written as $page and $page_top instead of $page_bottom.
The parameter should be similar to https://api.drupal.org/api/drupal/core%21modules%21system%21theme.api.ph...
Comment | File | Size | Author |
---|---|---|---|
#1 | drupal8-hook_page_bottom-2382497-1.patch | 611 bytes | er.pushpinderrana |
Comments
Comment #1
er.pushpinderrana CreditAttribution: er.pushpinderrana commentedAlso corrected variable name in attached patch.
Comment #2
legolasboThe patch makes hook_page_bottom have the same pattern as hook_page_top. Which improves DX (a little).
Patch looks good to me.
Comment #3
Wim LeersOops! Looks good :)
P.S.: Note that the PHP language in general allows you to rename the receiving parameter to anything you like. This applies to hooks, interface implementations, subclasses, etc.
Comment #4
alexpottDocumentation changes are unfrozen as part of https://www.drupal.org/core/beta-changes. Committed b0c6ff8 and pushed to 8.0.x. Thanks!