Skip to content
Snippets Groups Projects

Issue #3343324: Implement hook_help()

+ 23
0
<?php
/**
* @file
* Contains big_pipe_override.module.
*/
use Drupal\Core\Url;
use Drupal\Core\Routing\RouteMatchInterface;
/**
* Implements hook_help().
*/
function big_pipe_override_help($route_name, RouteMatchInterface $route_match) {
switch ($route_name) {
case 'help.page.big_pipe_override':
$output = '<h3>' . t('About') . '</h3>';
$output .= '<p>' . t('Big Pipe Override module is a development tool designed for disabling the Big Pipe feature in Drupal. In some cases, website developers may want to disable Big Pipe temporarily to set breakpoints in JavaScript files in attached libraries.') . '</p>';
$output .= '<p>' . t('To use this module, simply install it and enable it in the settings.php file by adding the following line:') . '</p>';
$output .= '<p><code>$settings["big_pipe_override_enabled"] = TRUE;</code></p>';
$output .= '<p>' . t('It is important to note that when changing this value, the cache must be cleared for the changes to take effect. With the "Big Pipe Override" module, developers can easily toggle the Big Pipe feature on and off as needed to debug and troubleshoot their website JavaScript code.') . '</p>';
return $output;
}
}
Loading