You are here

commerce_migrate.module in Commerce Migrate 3.1.x

File

commerce_migrate.module
View source
<?php

/**
 * @file
 * Contains commerce_migrate.module.
 */
use Drupal\Core\Routing\RouteMatchInterface;
use Drupal\Core\Url;

/**
 * Implements hook_help().
 */
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;
  }
}

Functions

Namesort descending Description
commerce_migrate_help Implements hook_help().