function MigrateDrupalHooks::help

Implements hook_help().

File

core/modules/migrate_drupal/src/Hook/MigrateDrupalHooks.php, line 22

Class

MigrateDrupalHooks
Hook implementations for migrate_drupal.

Namespace

Drupal\migrate_drupal\Hook

Code

public function help($route_name, RouteMatchInterface $route_match) {
    switch ($route_name) {
        case 'help.page.migrate_drupal':
            $output = '';
            $output .= '<h2>' . t('About') . '</h2>';
            $output .= '<p>' . t('The Migrate Drupal module provides a framework based on the <a href=":migrate">Migrate module</a> to facilitate migration from a Drupal (6, 7, or 8) site to your website. It does not provide a user interface. For more information, see the <a href=":migrate_drupal">online documentation for the Migrate Drupal module</a>.', [
                ':migrate' => Url::fromRoute('help.page', [
                    'name' => 'migrate',
                ])->toString(),
                ':migrate_drupal' => 'https://www.drupal.org/documentation/modules/migrate_drupal',
            ]) . '</p>';
            return $output;
    }
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.