function disable_messages_page_alter in Disable Messages 8
Same name and namespace in other branches
- 7 disable_messages.module \disable_messages_page_alter()
Implements hook_page_alter().
File
- ./
disable_messages.module, line 220 - The disable_messages module file.
Code
function disable_messages_page_alter(&$page) {
if (\Drupal::config('disable_messages.settings')
->get('disable_messages_enable_debug')) {
$page['page_bottom']['disable_messages_debug'] = [
'#type' => 'markup',
'#markup' => '',
'#pre_render' => [
'disable_message_pre_render_debug_output',
],
];
}
}