function hook_page_bottom

Same name in other branches
  1. 9 core/lib/Drupal/Core/Render/theme.api.php \hook_page_bottom()
  2. 10 core/lib/Drupal/Core/Render/theme.api.php \hook_page_bottom()
  3. 11.x core/lib/Drupal/Core/Render/theme.api.php \hook_page_bottom()

Add a renderable array to the bottom of the page.

Parameters

array $page_bottom: A renderable array representing the bottom of the page.

Related topics

2 functions implement hook_page_bottom()

Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.

theme_test_page_bottom in core/modules/system/tests/modules/theme_test/theme_test.module
Implements hook_page_bottom().
tour_page_bottom in core/modules/tour/tour.module
Implements hook_page_bottom().
1 invocation of hook_page_bottom()
HtmlRenderer::buildPageTopAndBottom in core/lib/Drupal/Core/Render/MainContent/HtmlRenderer.php
Invokes the page top and bottom hooks.

File

core/lib/Drupal/Core/Render/theme.api.php, line 1093

Code

function hook_page_bottom(array &$page_bottom) {
    $page_bottom['mymodule'] = [
        '#markup' => 'This is the bottom.',
    ];
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.