Skip to content
Snippets Groups Projects
Commit 8e7de1c1 authored by Angie Byron's avatar Angie Byron
Browse files

Issue #2161797 by boris sondagh, mfernea, arrrgh, amitgoyal: Create hook_help...

Issue #2161797 by boris sondagh, mfernea, arrrgh, amitgoyal: Create hook_help for migrate drupal module
parent 13e4f314
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
<?php <?php
/**
* @file
* Provides migration from other Drupal sites.
*/
use Drupal\Core\Routing\RouteMatchInterface;
/** /**
* Implements hook_entity_type_alter(). * Implements hook_entity_type_alter().
*/ */
...@@ -9,3 +16,16 @@ function migrate_drupal_entity_type_alter(array &$entity_types) { ...@@ -9,3 +16,16 @@ function migrate_drupal_entity_type_alter(array &$entity_types) {
->setClass('Drupal\migrate_drupal\Entity\Migration') ->setClass('Drupal\migrate_drupal\Entity\Migration')
->setHandlerClass('storage', 'Drupal\migrate_drupal\MigrationStorage'); ->setHandlerClass('storage', 'Drupal\migrate_drupal\MigrationStorage');
} }
/**
* Implements hook_help().
*/
function migrate_drupal_help($route_name, RouteMatchInterface $route_match) {
switch ($route_name) {
case 'help.page.migrate_drupal':
$output = '';
$output .= '<h3>' . t('About') . '</h3>';
$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>.', array('!migrate' => \Drupal::url('help.page', array('name' => 'migrate')), '!migrate_drupal' => 'https://www.drupal.org/documentation/modules/migrate_drupal')) . '</p>';
return $output;
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment