function commerce_migrate_help in Commerce Migrate 3.1.x
Same name and namespace in other branches
- 8.2 commerce_migrate.module \commerce_migrate_help()
- 3.0.x commerce_migrate.module \commerce_migrate_help()
Implements hook_help().
File
- ./
commerce_migrate.module, line 14 - Contains commerce_migrate.module.
Code
function commerce_migrate_help($route_name, RouteMatchInterface $route_match) {
switch ($route_name) {
// Main module help for the commerce_migrate module.
case 'help.page.commerce_migrate':
$output = '';
$output .= '<h3>' . t('About') . '</h3>';
$output .= '<p>' . t('The Commerce Migrate module provides a framework based on the <a href=":migrate">Migrate module</a> and the <a href=":migrate_drupal">Migrate Drupal module</a> to facilitate migration from Commerce web sites to Drupal 8 Commerce. It does not provide a user interface. For more information, see the <a href=":commerce_migrate">online documentation for the Commerce Migrate Drupal module</a>.', [
':migrate' => Url::fromRoute('help.page', [
'name' => 'migrate',
]),
':migrate_drupal' => Url::fromRoute('help.page', [
'name' => 'migrate_drupal',
]),
':commerce_migrate' => 'https://www.drupal.org/docs/8/modules/commerce-migrate',
]) . '</p>';
return $output;
}
}