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 | pushpinderchauhan |
Comments
Comment #1
pushpinderchauhan 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!