function hook_page_bottom

Same name and namespace in other branches
  1. 8.9.x 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

1 function implements hook_page_bottom()

Note: the procedural functions in this list are found by pattern matching, so the list may include some functions that are not actually implementations of this hook.

ThemeTestHooks::pageBottom in core/modules/system/tests/modules/theme_test/src/Hook/ThemeTestHooks.php
Implements hook_page_bottom().

File

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

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.