Updated to Drupal 8.5. Core Media not yet in use.
[yaffs-website] / web / core / modules / migrate_drupal_ui / migrate_drupal_ui.module
1 <?php
2
3 /**
4  * @file
5  * Alert administrators before starting the import process.
6  */
7
8 use Drupal\Core\Routing\RouteMatchInterface;
9 use Drupal\Core\Url;
10
11 /**
12  * Implements hook_help().
13  */
14 function migrate_drupal_ui_help($route_name, RouteMatchInterface $route_match) {
15   switch ($route_name) {
16     case 'help.page.migrate_drupal_ui':
17       $output = '';
18       $output .= '<h3>' . t('About') . '</h3>';
19       $output .= '<p>' . t('The Migrate Drupal UI module provides a simple user interface to perform an upgrade from an earlier version of Drupal. For more information, see the <a href=":migrate">online documentation for the Migrate Drupal UI module</a>.',
20           [':migrate' => 'https://www.drupal.org/upgrade/migrate']) . '</p>';
21       $output .= '<h3>' . t('Uses') . '</h3>';
22       $output .= '<dl>';
23       $output .= '<dt>' . t('Preparing the site') . '</dt>';
24       $output .= '<dd>' . t('You need to enable all modules on this site that are enabled on the previous site. For example, if you have used the Book module on the previous site then you must enable the Book module on this site for that data to be available on this site.') . '</dd>';
25       $output .= '<dt>' . t('Performing the upgrade') . '</dt>';
26       $output .= '<dd>' . t('On the <a href=":upgrade">Upgrade</a> page, you are guided through performing the upgrade in several steps.',
27           [':upgrade' => \Drupal::url('migrate_drupal_ui.upgrade')]) . '</dd>';
28       $output .= '<dd><ol><li>' . t('You need to enter the database credentials of the Drupal site that you want to upgrade. You can also include its files directory in the upgrade.') . '</li>';
29       $output .= '<li>' . t('The next page provides an overview of the modules that will be upgraded and those that will not be upgraded, before you proceed to perform the upgrade.') . '</li>';
30       $output .= '<li>' . t('Lastly, a message is displayed about the number of upgrade tasks that were successful or failed.') . '</li></ol></dd>';
31       $output .= '<dt>' . t('Reviewing the upgrade log') . '</dt>';
32       $output .= '<dd>' . t('You can review a <a href=":log">log of upgrade messages</a> by clicking the link in the message provided after the upgrade or by filtering the messages for the type <em>migrate_drupal_ui</em> on the <a href=":messages">Recent log messages</a> page.',
33           [':log' => \Drupal::url('migrate_drupal_ui.log'), ':messages' => \Drupal::url('dblog.overview')]) . '</dd>';
34       $output .= '<dt>' . t('Rolling back an upgrade') . '</dt>';
35       $output .= '<dd>' . t('Rolling back an upgrade is not yet supported through the user interface.') . '</dd>';
36       $output .= '</dl>';
37       return $output;
38   }
39 }