You are here

function hook_restrict_ip_access_denied_page_alter in Restrict IP 8.2

Same name and namespace in other branches
  1. 8 restrict_ip.api.php \hook_restrict_ip_access_denied_page_alter()
  2. 7.2 restrict_ip.api.php \hook_restrict_ip_access_denied_page_alter()
  3. 3.x restrict_ip.api.php \hook_restrict_ip_access_denied_page_alter()

Alter the Restrict IP Access Denied page.

Parameters

$page: The render array for the access deneid page passed by reference.

1 invocation of hook_restrict_ip_access_denied_page_alter()
PageController::accessDeniedPage in src/Controller/PageController.php
*

File

./restrict_ip.api.php, line 42
Hooks provided by the Restrict IP module.

Code

function hook_restrict_ip_access_denied_page_alter(&$page) {
  $page['additional_information'] = [
    '#markup' => t('Additional information to be shown on the Restrict IP Access Denied page'),
    '#prefix' => '<p>',
    '#suffix' => '</p>',
  ];
}