Skip to content
Snippets Groups Projects
Commit ddc8229d authored by Shubham Rathore's avatar Shubham Rathore Committed by Hristo Chonov
Browse files

Issue #3332900: hook_help function missing in .module file

parent 65e0064c
Branches
No related tags found
1 merge request!2Issue #3332900: hook_help function missing in .module file
......@@ -5,6 +5,25 @@ use Drupal\Core\Config\Entity\ConfigEntityInterface;
use Drupal\Core\Entity\EntityInterface;
use Drupal\Component\Render\MarkupInterface;
use Drupal\config_track\Controller\ConfigTrackController;
use Drupal\Core\Routing\RouteMatchInterface;
/**
* Implements hook_help().
*/
function config_track_help($route_name, RouteMatchInterface $route_match) {
switch ($route_name) {
// Main module help for the config_track module.
case 'help.page.config_track':
$output = '';
$output .= '<h3>' . t('About') . '</h3>';
$output .= '<p>' . t('This module allows to log any configuration change in Drupal 9/10.') . '</p>';
$output .= '<p>' . t('All changes to configuration in any config collection will be tracked as well as that the order of changes will be preserved.') . '</p>';
$output .= '<p>' . t('The module provides a nice UI where you can see a list of all recent config changes in the system as well as the user that triggered those changes. A diff is also available in order to see the exact change. .') . '</p>';
return $output;
default:
}
}
/**
* Implements hook_ENTITY_TYPE_presave().
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment