function upgrade_status_help in Upgrade Status 8.3
Same name and namespace in other branches
- 8 upgrade_status.module \upgrade_status_help()
- 8.2 upgrade_status.module \upgrade_status_help()
- 5 upgrade_status.module \upgrade_status_help()
- 6 upgrade_status.module \upgrade_status_help()
- 7 upgrade_status.module \upgrade_status_help()
Implements hook_help().
File
- ./
upgrade_status.module, line 10
Code
function upgrade_status_help($route_name, RouteMatchInterface $route_match) {
if ($route_name == 'upgrade_status.report') {
$help = '<p>' . t('Run the report to find out if there are detectable compatibility errors with the modules and themes installed on your site.');
// @todo Link to a relevant page for the Drupal 9 to 10 process when available.
if (ProjectCollector::getDrupalCoreMajorVersion() < 9) {
$help .= t('<a href=":prepare">Read more about preparing your site for Drupal 9</a>.', [
':prepare' => 'https://www.drupal.org/docs/9/how-to-prepare-your-drupal-7-or-8-site-for-drupal-9/prepare-a-drupal-8-site-for-drupal-9',
]);
}
$help .= '</p>';
return $help;
}
}